@etherisc/gif-next 0.0.2-da77c50-824 → 0.0.2-dd8c542-531

Sign up to get free protection for your applications and to get access to all the features.
Files changed (417) hide show
  1. package/README.md +242 -11
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +302 -23
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +744 -0
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +217 -23
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +152 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +90 -171
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +55 -177
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +615 -63
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +620 -70
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
  20. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
  21. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
  22. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
  23. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
  24. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  36. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  39. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  40. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  41. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  42. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  43. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  44. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  45. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  46. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  47. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +788 -0
  48. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  49. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
  50. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +4 -0
  51. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +1082 -0
  52. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  53. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +928 -1226
  54. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  55. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +448 -0
  56. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  57. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +496 -0
  58. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  59. package/artifacts/contracts/instance/Instance.sol/Instance.json +2469 -1188
  60. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  61. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +940 -0
  62. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +1 -1
  63. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +572 -122
  64. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  65. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1422 -0
  66. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  67. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1066 -0
  68. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  69. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +560 -0
  70. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  71. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +285 -0
  72. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
  73. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +521 -0
  74. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  75. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +113 -0
  76. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  77. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
  78. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  79. package/artifacts/contracts/instance/{module/lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
  80. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  81. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
  82. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  83. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  84. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  85. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +211 -0
  86. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  87. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  88. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  89. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.json +10 -0
  90. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  91. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  92. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  93. package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IRisk.sol/IRisk.json} +2 -2
  94. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  95. package/artifacts/contracts/instance/module/{pool/IPoolModule.sol/IPool.json → ISetup.sol/ISetup.json} +2 -2
  96. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  97. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  98. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  99. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +923 -0
  100. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  101. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +440 -0
  102. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  103. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +392 -97
  104. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +671 -0
  106. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  107. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +428 -0
  108. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  109. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +669 -0
  110. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  111. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +190 -88
  112. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  113. package/artifacts/contracts/instance/service/{ComponentServiceBase.sol/ComponentServiceBase.json → IDistributionService.sol/IDistributionService.json} +217 -71
  114. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  115. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +664 -0
  116. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  117. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +205 -82
  118. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  119. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +214 -155
  120. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  121. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +971 -0
  122. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  123. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +464 -0
  124. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  125. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +324 -118
  126. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  127. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +428 -0
  128. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  129. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +315 -245
  130. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  131. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +420 -0
  132. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  133. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +186 -12
  134. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  135. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +309 -41
  136. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  137. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +886 -0
  138. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  139. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  140. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  141. package/artifacts/contracts/registry/Registry.sol/Registry.json +385 -129
  142. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  143. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1195 -0
  144. package/artifacts/contracts/registry/RegistryServiceAccessManager.sol/RegistryServiceAccessManager.dbg.json +4 -0
  145. package/artifacts/contracts/registry/RegistryServiceAccessManager.sol/RegistryServiceAccessManager.json +275 -0
  146. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  147. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +451 -0
  148. package/artifacts/contracts/registry/RegistryServiceReleaseManager.sol/RegistryServiceReleaseManager.dbg.json +4 -0
  149. package/artifacts/contracts/registry/RegistryServiceReleaseManager.sol/RegistryServiceReleaseManager.json +521 -0
  150. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  151. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +397 -0
  152. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  153. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  154. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  155. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  156. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  157. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  158. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  159. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +117 -37
  160. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  161. package/artifacts/contracts/{instance/service → shared}/IService.sol/IService.json +188 -67
  162. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  163. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +60 -19
  164. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  165. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
  166. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  167. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
  168. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  169. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +190 -37
  170. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
  171. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +442 -0
  172. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  173. package/artifacts/contracts/{instance/service/ServiceBase.sol/ServiceBase.json → shared/Service.sol/Service.json} +229 -61
  174. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  175. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  176. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  177. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  178. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  179. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +83 -19
  180. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  181. package/artifacts/contracts/test/TestFee.sol/TestFee.json +30 -6
  182. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  183. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +204 -36
  184. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  185. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +44 -10
  186. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  187. package/artifacts/contracts/test/TestService.sol/TestService.json +283 -90
  188. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  189. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  190. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  191. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +14 -18
  192. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  193. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +106 -50
  194. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  195. package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
  196. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  197. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  198. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  199. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  200. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  201. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  202. package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
  203. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  204. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
  205. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  206. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
  207. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  208. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  209. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  210. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  211. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  212. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  213. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  214. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  215. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  216. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  217. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  218. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
  219. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  220. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  221. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  222. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +15 -2
  223. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  224. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  225. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  226. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
  227. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  228. package/artifacts/contracts/types/Version.sol/VersionLib.json +101 -2
  229. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  230. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  231. package/contracts/components/BaseComponent.sol +75 -32
  232. package/contracts/components/Distribution.sol +163 -0
  233. package/contracts/components/IBaseComponent.sol +15 -3
  234. package/contracts/components/IDistributionComponent.sol +44 -0
  235. package/contracts/components/IPoolComponent.sol +19 -10
  236. package/contracts/components/IProductComponent.sol +25 -9
  237. package/contracts/components/Pool.sol +132 -35
  238. package/contracts/components/Product.sol +211 -36
  239. package/contracts/experiment/cloning/Cloner.sol +47 -0
  240. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +23 -0
  241. package/contracts/instance/BundleManager.sol +129 -0
  242. package/contracts/instance/Cloneable.sol +46 -0
  243. package/contracts/instance/IAccessManagerSimple.sol +391 -0
  244. package/contracts/instance/IInstance.sol +53 -43
  245. package/contracts/instance/IInstanceBase.sol +26 -0
  246. package/contracts/instance/IInstanceService.sol +34 -0
  247. package/contracts/instance/Instance.sol +447 -45
  248. package/contracts/instance/InstanceAccessManager.sol +288 -0
  249. package/contracts/instance/InstanceBase.sol +33 -66
  250. package/contracts/instance/InstanceReader.sol +315 -0
  251. package/contracts/instance/InstanceService.sol +299 -0
  252. package/contracts/instance/InstanceServiceManager.sol +58 -0
  253. package/contracts/instance/ObjectManager.sol +101 -0
  254. package/contracts/instance/base/ComponentServiceBase.sol +72 -0
  255. package/contracts/instance/base/IInstanceBase.sol +23 -0
  256. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  257. package/contracts/instance/base/ILifecycle.sol +30 -0
  258. package/contracts/instance/base/KeyValueStore.sol +172 -0
  259. package/contracts/instance/{module/lifecycle/LifecycleModule.sol → base/Lifecycle.sol} +51 -40
  260. package/contracts/instance/module/IAccess.sol +38 -0
  261. package/contracts/instance/module/IBundle.sol +20 -0
  262. package/contracts/instance/module/IDistribution.sol +39 -0
  263. package/contracts/instance/module/IPolicy.sol +45 -0
  264. package/contracts/instance/module/IRisk.sol +11 -0
  265. package/contracts/instance/module/ISetup.sol +46 -0
  266. package/contracts/instance/module/ITreasury.sol +23 -0
  267. package/contracts/instance/service/BundleService.sol +260 -0
  268. package/contracts/instance/service/BundleServiceManager.sol +55 -0
  269. package/contracts/instance/service/ComponentOwnerService.sol +246 -105
  270. package/contracts/instance/service/DistributionService.sol +114 -0
  271. package/contracts/instance/service/DistributionServiceManager.sol +55 -0
  272. package/contracts/instance/service/IBundleService.sol +45 -0
  273. package/contracts/instance/service/IComponentOwnerService.sol +1 -3
  274. package/contracts/instance/service/IDistributionService.sol +12 -0
  275. package/contracts/instance/service/IPolicyService.sol +87 -0
  276. package/contracts/instance/service/IPoolService.sol +8 -18
  277. package/contracts/instance/service/IProductService.sol +21 -39
  278. package/contracts/instance/service/PolicyService.sol +503 -0
  279. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  280. package/contracts/instance/service/PoolService.sol +90 -66
  281. package/contracts/instance/service/PoolServiceManager.sol +55 -0
  282. package/contracts/instance/service/ProductService.sol +109 -299
  283. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  284. package/contracts/registry/ChainNft.sol +79 -36
  285. package/contracts/registry/IRegistry.sol +45 -25
  286. package/contracts/registry/IRegistryService.sol +54 -0
  287. package/contracts/registry/ITransferInterceptor.sol +6 -0
  288. package/contracts/registry/Registry.sol +292 -288
  289. package/contracts/registry/RegistryService.sol +330 -0
  290. package/contracts/registry/RegistryServiceAccessManager.sol +210 -0
  291. package/contracts/registry/RegistryServiceManager.sol +60 -0
  292. package/contracts/registry/RegistryServiceReleaseManager.sol +366 -0
  293. package/contracts/registry/TokenRegistry.sol +110 -0
  294. package/contracts/shared/ContractDeployerLib.sol +72 -0
  295. package/contracts/shared/ERC165.sol +6 -2
  296. package/contracts/shared/INftOwnable.sol +22 -0
  297. package/contracts/shared/IRegisterable.sol +8 -15
  298. package/contracts/shared/IService.sol +16 -0
  299. package/contracts/shared/IVersionable.sol +56 -12
  300. package/contracts/shared/NftOwnable.sol +134 -0
  301. package/contracts/shared/ProxyManager.sol +94 -0
  302. package/contracts/shared/Registerable.sol +63 -59
  303. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  304. package/contracts/shared/Service.sol +58 -0
  305. package/contracts/shared/TokenHandler.sol +27 -0
  306. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  307. package/contracts/shared/Versionable.sol +112 -57
  308. package/contracts/test/TestFee.sol +4 -4
  309. package/contracts/test/TestRegisterable.sol +5 -6
  310. package/contracts/test/TestRoleId.sol +2 -2
  311. package/contracts/test/TestService.sol +8 -18
  312. package/contracts/test/TestVersion.sol +4 -7
  313. package/contracts/test/TestVersionable.sol +2 -5
  314. package/contracts/test/Usdc.sol +26 -0
  315. package/contracts/types/DistributorType.sol +55 -0
  316. package/contracts/types/Fee.sol +44 -20
  317. package/contracts/types/Key32.sol +50 -0
  318. package/contracts/types/NftId.sol +16 -1
  319. package/contracts/types/NftIdSet.sol +26 -24
  320. package/contracts/types/NumberId.sol +52 -0
  321. package/contracts/types/ObjectType.sol +51 -14
  322. package/contracts/types/Referral.sol +85 -0
  323. package/contracts/types/RiskId.sol +43 -0
  324. package/contracts/types/RoleId.sol +66 -11
  325. package/contracts/types/StateId.sol +12 -2
  326. package/contracts/types/Timestamp.sol +7 -3
  327. package/contracts/types/UFixed.sol +144 -25
  328. package/contracts/types/Version.sol +42 -26
  329. package/package.json +4 -3
  330. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  331. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  332. package/artifacts/contracts/instance/IServiceLinked.sol/IServiceLinked.dbg.json +0 -4
  333. package/artifacts/contracts/instance/IServiceLinked.sol/IServiceLinked.json +0 -50
  334. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  335. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  336. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  337. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  338. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  339. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  340. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -276
  341. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  342. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  343. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -276
  344. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  345. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -188
  346. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  347. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  348. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  349. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -188
  350. package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  351. package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
  352. package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
  353. package/artifacts/contracts/instance/module/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
  354. package/artifacts/contracts/instance/module/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
  355. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  356. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  357. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -261
  358. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  359. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -261
  360. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  361. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  362. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -149
  363. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  364. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -149
  365. package/artifacts/contracts/instance/module/product/IProductModule.sol/IProductModule.dbg.json +0 -4
  366. package/artifacts/contracts/instance/module/product/IProductModule.sol/IProductModule.json +0 -10
  367. package/artifacts/contracts/instance/module/product/ProductModule.sol/ProductModule.dbg.json +0 -4
  368. package/artifacts/contracts/instance/module/product/ProductModule.sol/ProductModule.json +0 -10
  369. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  370. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  371. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -538
  372. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  373. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  374. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  375. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -538
  376. package/artifacts/contracts/instance/service/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  377. package/artifacts/contracts/instance/service/IService.sol/IService.dbg.json +0 -4
  378. package/artifacts/contracts/instance/service/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  379. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  380. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -452
  381. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  382. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  383. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  384. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  385. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  386. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -387
  387. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  388. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -393
  389. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  390. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -453
  391. package/contracts/experiment/statemachine/README.md +0 -112
  392. package/contracts/instance/IInstanceLinked.sol +0 -8
  393. package/contracts/instance/IServiceLinked.sol +0 -12
  394. package/contracts/instance/module/access/Access.sol +0 -149
  395. package/contracts/instance/module/access/IAccess.sol +0 -53
  396. package/contracts/instance/module/bundle/BundleModule.sol +0 -228
  397. package/contracts/instance/module/bundle/IBundle.sol +0 -53
  398. package/contracts/instance/module/component/ComponentModule.sol +0 -104
  399. package/contracts/instance/module/component/IComponent.sol +0 -53
  400. package/contracts/instance/module/lifecycle/ILifecycle.sol +0 -47
  401. package/contracts/instance/module/policy/IPolicy.sol +0 -60
  402. package/contracts/instance/module/policy/PolicyModule.sol +0 -84
  403. package/contracts/instance/module/pool/IPoolModule.sol +0 -41
  404. package/contracts/instance/module/pool/PoolModule.sol +0 -87
  405. package/contracts/instance/module/product/IProductModule.sol +0 -6
  406. package/contracts/instance/module/product/ProductModule.sol +0 -8
  407. package/contracts/instance/module/treasury/ITreasury.sol +0 -104
  408. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  409. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -148
  410. package/contracts/instance/service/ComponentServiceBase.sol +0 -41
  411. package/contracts/instance/service/IService.sol +0 -15
  412. package/contracts/instance/service/ServiceBase.sol +0 -39
  413. package/contracts/registry/IChainNft.sol +0 -21
  414. package/contracts/registry/IRegistryLinked.sol +0 -8
  415. package/contracts/shared/IOwnable.sol +0 -6
  416. package/contracts/test/TestPool.sol +0 -22
  417. package/contracts/test/TestProduct.sol +0 -44
@@ -0,0 +1,971 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "PolicyService",
4
+ "sourceName": "contracts/instance/service/PolicyService.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "ObjectType",
10
+ "name": "componentType",
11
+ "type": "uint8"
12
+ }
13
+ ],
14
+ "name": "ComponentTypeInvalid",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "address",
21
+ "name": "registry",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "NftId",
26
+ "name": "nftId",
27
+ "type": "uint96"
28
+ }
29
+ ],
30
+ "name": "ErrorAlreadyLinked",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "contractAddress",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "ErrorContractNotRegistered",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "customer",
49
+ "type": "address"
50
+ },
51
+ {
52
+ "internalType": "address",
53
+ "name": "tokenHandlerAddress",
54
+ "type": "address"
55
+ },
56
+ {
57
+ "internalType": "uint256",
58
+ "name": "amount",
59
+ "type": "uint256"
60
+ }
61
+ ],
62
+ "name": "ErrorIPolicyServiceInsufficientAllowance",
63
+ "type": "error"
64
+ },
65
+ {
66
+ "inputs": [
67
+ {
68
+ "internalType": "address",
69
+ "name": "account",
70
+ "type": "address"
71
+ }
72
+ ],
73
+ "name": "ErrorNotOwner",
74
+ "type": "error"
75
+ },
76
+ {
77
+ "inputs": [
78
+ {
79
+ "internalType": "address",
80
+ "name": "registryAddress",
81
+ "type": "address"
82
+ }
83
+ ],
84
+ "name": "ErrorNotRegistry",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "inputs": [
89
+ {
90
+ "internalType": "address",
91
+ "name": "registryAddress",
92
+ "type": "address"
93
+ }
94
+ ],
95
+ "name": "ErrorRegisterableNotRegistry",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [],
100
+ "name": "ErrorRegistryAddressZero",
101
+ "type": "error"
102
+ },
103
+ {
104
+ "inputs": [
105
+ {
106
+ "internalType": "address",
107
+ "name": "registry",
108
+ "type": "address"
109
+ }
110
+ ],
111
+ "name": "ErrorRegistryAlreadyInitialized",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [],
116
+ "name": "ErrorRegistryNotInitialized",
117
+ "type": "error"
118
+ },
119
+ {
120
+ "inputs": [
121
+ {
122
+ "internalType": "RoleId",
123
+ "name": "expected",
124
+ "type": "uint64"
125
+ },
126
+ {
127
+ "internalType": "address",
128
+ "name": "caller",
129
+ "type": "address"
130
+ }
131
+ ],
132
+ "name": "ExpectedRoleMissing",
133
+ "type": "error"
134
+ },
135
+ {
136
+ "inputs": [],
137
+ "name": "InvalidInitialization",
138
+ "type": "error"
139
+ },
140
+ {
141
+ "inputs": [],
142
+ "name": "NotInitializing",
143
+ "type": "error"
144
+ },
145
+ {
146
+ "anonymous": false,
147
+ "inputs": [
148
+ {
149
+ "indexed": false,
150
+ "internalType": "uint64",
151
+ "name": "version",
152
+ "type": "uint64"
153
+ }
154
+ ],
155
+ "name": "Initialized",
156
+ "type": "event"
157
+ },
158
+ {
159
+ "anonymous": false,
160
+ "inputs": [
161
+ {
162
+ "indexed": false,
163
+ "internalType": "address",
164
+ "name": "sender",
165
+ "type": "address"
166
+ }
167
+ ],
168
+ "name": "LogProductServiceSender",
169
+ "type": "event"
170
+ },
171
+ {
172
+ "anonymous": false,
173
+ "inputs": [
174
+ {
175
+ "indexed": false,
176
+ "internalType": "Version",
177
+ "name": "version",
178
+ "type": "uint24"
179
+ },
180
+ {
181
+ "indexed": false,
182
+ "internalType": "address",
183
+ "name": "implementation",
184
+ "type": "address"
185
+ },
186
+ {
187
+ "indexed": false,
188
+ "internalType": "address",
189
+ "name": "activatedBy",
190
+ "type": "address"
191
+ }
192
+ ],
193
+ "name": "LogVersionableInitialized",
194
+ "type": "event"
195
+ },
196
+ {
197
+ "inputs": [],
198
+ "name": "REGISTERABLE_LOCATION_V1",
199
+ "outputs": [
200
+ {
201
+ "internalType": "bytes32",
202
+ "name": "",
203
+ "type": "bytes32"
204
+ }
205
+ ],
206
+ "stateMutability": "view",
207
+ "type": "function"
208
+ },
209
+ {
210
+ "inputs": [
211
+ {
212
+ "internalType": "NftId",
213
+ "name": "policyNftId",
214
+ "type": "uint96"
215
+ },
216
+ {
217
+ "internalType": "Timestamp",
218
+ "name": "activateAt",
219
+ "type": "uint40"
220
+ }
221
+ ],
222
+ "name": "activate",
223
+ "outputs": [],
224
+ "stateMutability": "nonpayable",
225
+ "type": "function"
226
+ },
227
+ {
228
+ "inputs": [
229
+ {
230
+ "internalType": "RiskId",
231
+ "name": "riskId",
232
+ "type": "bytes8"
233
+ },
234
+ {
235
+ "internalType": "uint256",
236
+ "name": "sumInsuredAmount",
237
+ "type": "uint256"
238
+ },
239
+ {
240
+ "internalType": "uint256",
241
+ "name": "lifetime",
242
+ "type": "uint256"
243
+ },
244
+ {
245
+ "internalType": "bytes",
246
+ "name": "applicationData",
247
+ "type": "bytes"
248
+ },
249
+ {
250
+ "internalType": "NftId",
251
+ "name": "bundleNftId",
252
+ "type": "uint96"
253
+ },
254
+ {
255
+ "internalType": "ReferralId",
256
+ "name": "referralId",
257
+ "type": "bytes8"
258
+ }
259
+ ],
260
+ "name": "calculatePremium",
261
+ "outputs": [
262
+ {
263
+ "internalType": "uint256",
264
+ "name": "premiumAmount",
265
+ "type": "uint256"
266
+ },
267
+ {
268
+ "internalType": "uint256",
269
+ "name": "productFeeAmount",
270
+ "type": "uint256"
271
+ },
272
+ {
273
+ "internalType": "uint256",
274
+ "name": "poolFeeAmount",
275
+ "type": "uint256"
276
+ },
277
+ {
278
+ "internalType": "uint256",
279
+ "name": "bundleFeeAmount",
280
+ "type": "uint256"
281
+ },
282
+ {
283
+ "internalType": "uint256",
284
+ "name": "distributionFeeAmount",
285
+ "type": "uint256"
286
+ }
287
+ ],
288
+ "stateMutability": "view",
289
+ "type": "function"
290
+ },
291
+ {
292
+ "inputs": [
293
+ {
294
+ "internalType": "UFixed",
295
+ "name": "collateralizationLevel",
296
+ "type": "uint256"
297
+ },
298
+ {
299
+ "internalType": "uint256",
300
+ "name": "sumInsuredAmount",
301
+ "type": "uint256"
302
+ }
303
+ ],
304
+ "name": "calculateRequiredCollateral",
305
+ "outputs": [
306
+ {
307
+ "internalType": "uint256",
308
+ "name": "collateralAmount",
309
+ "type": "uint256"
310
+ }
311
+ ],
312
+ "stateMutability": "pure",
313
+ "type": "function"
314
+ },
315
+ {
316
+ "inputs": [
317
+ {
318
+ "internalType": "NftId",
319
+ "name": "policyNftId",
320
+ "type": "uint96"
321
+ }
322
+ ],
323
+ "name": "close",
324
+ "outputs": [],
325
+ "stateMutability": "nonpayable",
326
+ "type": "function"
327
+ },
328
+ {
329
+ "inputs": [
330
+ {
331
+ "internalType": "NftId",
332
+ "name": "policyNftId",
333
+ "type": "uint96"
334
+ },
335
+ {
336
+ "internalType": "Timestamp",
337
+ "name": "activateAt",
338
+ "type": "uint40"
339
+ }
340
+ ],
341
+ "name": "collectPremium",
342
+ "outputs": [],
343
+ "stateMutability": "nonpayable",
344
+ "type": "function"
345
+ },
346
+ {
347
+ "inputs": [
348
+ {
349
+ "internalType": "address",
350
+ "name": "applicationOwner",
351
+ "type": "address"
352
+ },
353
+ {
354
+ "internalType": "RiskId",
355
+ "name": "riskId",
356
+ "type": "bytes8"
357
+ },
358
+ {
359
+ "internalType": "uint256",
360
+ "name": "sumInsuredAmount",
361
+ "type": "uint256"
362
+ },
363
+ {
364
+ "internalType": "uint256",
365
+ "name": "lifetime",
366
+ "type": "uint256"
367
+ },
368
+ {
369
+ "internalType": "bytes",
370
+ "name": "applicationData",
371
+ "type": "bytes"
372
+ },
373
+ {
374
+ "internalType": "NftId",
375
+ "name": "bundleNftId",
376
+ "type": "uint96"
377
+ },
378
+ {
379
+ "internalType": "ReferralId",
380
+ "name": "referralId",
381
+ "type": "bytes8"
382
+ }
383
+ ],
384
+ "name": "createApplication",
385
+ "outputs": [
386
+ {
387
+ "internalType": "NftId",
388
+ "name": "policyNftId",
389
+ "type": "uint96"
390
+ }
391
+ ],
392
+ "stateMutability": "nonpayable",
393
+ "type": "function"
394
+ },
395
+ {
396
+ "inputs": [],
397
+ "name": "getDomain",
398
+ "outputs": [
399
+ {
400
+ "internalType": "ObjectType",
401
+ "name": "",
402
+ "type": "uint8"
403
+ }
404
+ ],
405
+ "stateMutability": "pure",
406
+ "type": "function"
407
+ },
408
+ {
409
+ "inputs": [],
410
+ "name": "getInitialInfo",
411
+ "outputs": [
412
+ {
413
+ "components": [
414
+ {
415
+ "internalType": "NftId",
416
+ "name": "nftId",
417
+ "type": "uint96"
418
+ },
419
+ {
420
+ "internalType": "NftId",
421
+ "name": "parentNftId",
422
+ "type": "uint96"
423
+ },
424
+ {
425
+ "internalType": "ObjectType",
426
+ "name": "objectType",
427
+ "type": "uint8"
428
+ },
429
+ {
430
+ "internalType": "bool",
431
+ "name": "isInterceptor",
432
+ "type": "bool"
433
+ },
434
+ {
435
+ "internalType": "address",
436
+ "name": "objectAddress",
437
+ "type": "address"
438
+ },
439
+ {
440
+ "internalType": "address",
441
+ "name": "initialOwner",
442
+ "type": "address"
443
+ },
444
+ {
445
+ "internalType": "bytes",
446
+ "name": "data",
447
+ "type": "bytes"
448
+ }
449
+ ],
450
+ "internalType": "struct IRegistry.ObjectInfo",
451
+ "name": "",
452
+ "type": "tuple"
453
+ },
454
+ {
455
+ "internalType": "bytes",
456
+ "name": "data",
457
+ "type": "bytes"
458
+ }
459
+ ],
460
+ "stateMutability": "view",
461
+ "type": "function"
462
+ },
463
+ {
464
+ "inputs": [],
465
+ "name": "getInitializedVersion",
466
+ "outputs": [
467
+ {
468
+ "internalType": "uint64",
469
+ "name": "",
470
+ "type": "uint64"
471
+ }
472
+ ],
473
+ "stateMutability": "view",
474
+ "type": "function"
475
+ },
476
+ {
477
+ "inputs": [],
478
+ "name": "getInstanceService",
479
+ "outputs": [
480
+ {
481
+ "internalType": "contract InstanceService",
482
+ "name": "",
483
+ "type": "address"
484
+ }
485
+ ],
486
+ "stateMutability": "view",
487
+ "type": "function"
488
+ },
489
+ {
490
+ "inputs": [],
491
+ "name": "getMajorVersion",
492
+ "outputs": [
493
+ {
494
+ "internalType": "VersionPart",
495
+ "name": "majorVersion",
496
+ "type": "uint8"
497
+ }
498
+ ],
499
+ "stateMutability": "view",
500
+ "type": "function"
501
+ },
502
+ {
503
+ "inputs": [],
504
+ "name": "getNftId",
505
+ "outputs": [
506
+ {
507
+ "internalType": "NftId",
508
+ "name": "",
509
+ "type": "uint96"
510
+ }
511
+ ],
512
+ "stateMutability": "view",
513
+ "type": "function"
514
+ },
515
+ {
516
+ "inputs": [],
517
+ "name": "getOwner",
518
+ "outputs": [
519
+ {
520
+ "internalType": "address",
521
+ "name": "",
522
+ "type": "address"
523
+ }
524
+ ],
525
+ "stateMutability": "view",
526
+ "type": "function"
527
+ },
528
+ {
529
+ "inputs": [],
530
+ "name": "getRegistry",
531
+ "outputs": [
532
+ {
533
+ "internalType": "contract IRegistry",
534
+ "name": "",
535
+ "type": "address"
536
+ }
537
+ ],
538
+ "stateMutability": "view",
539
+ "type": "function"
540
+ },
541
+ {
542
+ "inputs": [],
543
+ "name": "getRegistryService",
544
+ "outputs": [
545
+ {
546
+ "internalType": "contract IRegistryService",
547
+ "name": "",
548
+ "type": "address"
549
+ }
550
+ ],
551
+ "stateMutability": "view",
552
+ "type": "function"
553
+ },
554
+ {
555
+ "inputs": [],
556
+ "name": "getVersion",
557
+ "outputs": [
558
+ {
559
+ "internalType": "Version",
560
+ "name": "",
561
+ "type": "uint24"
562
+ }
563
+ ],
564
+ "stateMutability": "pure",
565
+ "type": "function"
566
+ },
567
+ {
568
+ "inputs": [
569
+ {
570
+ "internalType": "uint256",
571
+ "name": "idx",
572
+ "type": "uint256"
573
+ }
574
+ ],
575
+ "name": "getVersion",
576
+ "outputs": [
577
+ {
578
+ "internalType": "Version",
579
+ "name": "",
580
+ "type": "uint24"
581
+ }
582
+ ],
583
+ "stateMutability": "view",
584
+ "type": "function"
585
+ },
586
+ {
587
+ "inputs": [],
588
+ "name": "getVersionCount",
589
+ "outputs": [
590
+ {
591
+ "internalType": "uint256",
592
+ "name": "",
593
+ "type": "uint256"
594
+ }
595
+ ],
596
+ "stateMutability": "view",
597
+ "type": "function"
598
+ },
599
+ {
600
+ "inputs": [
601
+ {
602
+ "internalType": "Version",
603
+ "name": "_version",
604
+ "type": "uint24"
605
+ }
606
+ ],
607
+ "name": "getVersionInfo",
608
+ "outputs": [
609
+ {
610
+ "components": [
611
+ {
612
+ "internalType": "Version",
613
+ "name": "version",
614
+ "type": "uint24"
615
+ },
616
+ {
617
+ "internalType": "address",
618
+ "name": "implementation",
619
+ "type": "address"
620
+ },
621
+ {
622
+ "internalType": "address",
623
+ "name": "activatedBy",
624
+ "type": "address"
625
+ },
626
+ {
627
+ "internalType": "Timestamp",
628
+ "name": "activatedAt",
629
+ "type": "uint40"
630
+ },
631
+ {
632
+ "internalType": "Blocknumber",
633
+ "name": "activatedIn",
634
+ "type": "uint32"
635
+ }
636
+ ],
637
+ "internalType": "struct IVersionable.VersionInfo",
638
+ "name": "",
639
+ "type": "tuple"
640
+ }
641
+ ],
642
+ "stateMutability": "view",
643
+ "type": "function"
644
+ },
645
+ {
646
+ "inputs": [
647
+ {
648
+ "internalType": "address",
649
+ "name": "implementation",
650
+ "type": "address"
651
+ },
652
+ {
653
+ "internalType": "address",
654
+ "name": "activatedBy",
655
+ "type": "address"
656
+ },
657
+ {
658
+ "internalType": "bytes",
659
+ "name": "data",
660
+ "type": "bytes"
661
+ }
662
+ ],
663
+ "name": "initialize",
664
+ "outputs": [],
665
+ "stateMutability": "nonpayable",
666
+ "type": "function"
667
+ },
668
+ {
669
+ "inputs": [
670
+ {
671
+ "internalType": "Version",
672
+ "name": "_version",
673
+ "type": "uint24"
674
+ }
675
+ ],
676
+ "name": "isInitialized",
677
+ "outputs": [
678
+ {
679
+ "internalType": "bool",
680
+ "name": "",
681
+ "type": "bool"
682
+ }
683
+ ],
684
+ "stateMutability": "view",
685
+ "type": "function"
686
+ },
687
+ {
688
+ "inputs": [],
689
+ "name": "linkToRegisteredNftId",
690
+ "outputs": [],
691
+ "stateMutability": "nonpayable",
692
+ "type": "function"
693
+ },
694
+ {
695
+ "inputs": [
696
+ {
697
+ "internalType": "NftId",
698
+ "name": "policyNftId",
699
+ "type": "uint96"
700
+ }
701
+ ],
702
+ "name": "revoke",
703
+ "outputs": [],
704
+ "stateMutability": "nonpayable",
705
+ "type": "function"
706
+ },
707
+ {
708
+ "inputs": [
709
+ {
710
+ "internalType": "bytes4",
711
+ "name": "interfaceId",
712
+ "type": "bytes4"
713
+ }
714
+ ],
715
+ "name": "supportsInterface",
716
+ "outputs": [
717
+ {
718
+ "internalType": "bool",
719
+ "name": "",
720
+ "type": "bool"
721
+ }
722
+ ],
723
+ "stateMutability": "view",
724
+ "type": "function"
725
+ },
726
+ {
727
+ "inputs": [
728
+ {
729
+ "internalType": "NftId",
730
+ "name": "policyNftId",
731
+ "type": "uint96"
732
+ },
733
+ {
734
+ "internalType": "bool",
735
+ "name": "requirePremiumPayment",
736
+ "type": "bool"
737
+ },
738
+ {
739
+ "internalType": "Timestamp",
740
+ "name": "activateAt",
741
+ "type": "uint40"
742
+ }
743
+ ],
744
+ "name": "underwrite",
745
+ "outputs": [],
746
+ "stateMutability": "nonpayable",
747
+ "type": "function"
748
+ },
749
+ {
750
+ "inputs": [
751
+ {
752
+ "internalType": "address",
753
+ "name": "implementation",
754
+ "type": "address"
755
+ },
756
+ {
757
+ "internalType": "address",
758
+ "name": "activatedBy",
759
+ "type": "address"
760
+ },
761
+ {
762
+ "internalType": "bytes",
763
+ "name": "data",
764
+ "type": "bytes"
765
+ }
766
+ ],
767
+ "name": "upgrade",
768
+ "outputs": [],
769
+ "stateMutability": "nonpayable",
770
+ "type": "function"
771
+ }
772
+ ],
773
+ "bytecode": "0x60806040523480156200001157600080fd5b50620000546301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b600280546001600160a01b031916331790556200007062000076565b6200012a565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000c75760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620001275780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b61499c806200013a6000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c8063644c45e0116100f9578063b88da75911610097578063caf4e3d411610071578063caf4e3d414610526578063cc9fc59a1461052e578063cde749f414610536578063cf7a1d771461053e57600080fd5b8063b88da759146104ed578063bbfbbfba14610500578063c2c749871461051357600080fd5b80639cdaa7f9116100d35780639cdaa7f91461046a578063a745e3df146104a5578063b3c65015146104b8578063b68d1809146104d857600080fd5b8063644c45e01461040f578063893d20e81461043b578063946dfcfe1461044357600080fd5b80634d459c90116101665780635ab1bd53116101405780635ab1bd53146103b15780635fd1a5f5146103d6578063603ccaad146103e9578063630361f6146103fc57600080fd5b80634d459c90146102725780634d5e16a91461038b5780634f4213331461039e57600080fd5b806301ffc9a7146101ae5780630aaba8e8146101f05780630d8e6e2c146102035780630fec111c1461021f578063138461e0146102355780631eff4b221461023d575b600080fd5b6101db6101bc36600461384c565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6102016101fe36600461388b565b50565b005b61020b610551565b60405162ffffff90911681526020016101e7565b6102276105db565b6040516101e7929190613969565b61020161072e565b6102647f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b6040519081526020016101e7565b61032e6102803660046139a8565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915260008051602061494783398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a0016101e7565b6102016103993660046139d8565b610950565b6101db6103ac3660046139a8565b610c14565b6001546001600160a01b03165b6040516001600160a01b0390911681526020016101e7565b6102646103e4366004613a11565b610cc7565b6102016103f736600461388b565b610dd0565b61020161040a366004613a41565b610e22565b600154600160a01b90046001600160601b03165b6040516001600160601b0390911681526020016101e7565b6103be611394565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed90154610264565b61047d610478366004613bf6565b6114ae565b604080519586526020860194909452928401919091526060830152608082015260a0016101e7565b6102016104b3366004613c93565b61158c565b6104c06116e6565b6040516001600160401b0390911681526020016101e7565b60d25b60405160ff90911681526020016101e7565b61020b6104fb366004613cf4565b611707565b61020161050e3660046139d8565b611758565b610423610521366004613d0d565b6117d5565b6103be611a8d565b6103be611b23565b6104db611b7c565b61020161054c366004613c93565b611bff565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156105b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d69190613da9565b905090565b6105e3613790565b606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e0016040528061062f6001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610677611394565b6001600160a01b0316815260200182600101805461069490613dc6565b80601f01602080910402602001604051908101604052809291908181526020018280546106c090613dc6565b801561070d5780601f106106e25761010080835404028352916020019161070d565b820191906000526020600020905b8154815290600101906020018083116106f057829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610790573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b49190613e10565b156107fb576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166108245760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa15801561086d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108919190613e10565b6108b9576040516372657a5160e01b81526001600160a01b03821660048201526024016107f2565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa158015610903573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109279190613e38565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b600061095c606e611d08565b9150506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa15801561099f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c39190613e55565b60405163bd7d9d8560e01b81526001600160601b03861660048201529091506000906001600160a01b0383169063bd7d9d8590602401600060405180830381865afa158015610a16573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a3e9190810190613edf565b6101a081015160405163790a38ad60e01b815264ffffffffff909116600482015290915073__$d53880c81dc91c20799140d711e5ab8718$__9063790a38ad90602401602060405180830381865af4158015610a9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac29190613e10565b610b0e5760405162461bcd60e51b815260206004820152601f60248201527f4552524f523a5052532d3032303a414c52454144595f4143544956415445440060448201526064016107f2565b64ffffffffff84166101a0820181905260e0820151604051631ded81af60e31b81526004810192909252602482015273__$d53880c81dc91c20799140d711e5ab8718$__9063ef6c0d7890604401602060405180830381865af4158015610b79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9d9190614053565b64ffffffffff166101c0820152604051634d4b06a960e11b81526001600160a01b03841690639a960d5290610bdb908890859060649060040161419f565b600060405180830381600087803b158015610bf557600080fd5b505af1158015610c09573d6000803e3d6000fd5b505050505050505050565b60008060008051602061494783398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af4158015610c9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc091906141d4565b1192915050565b6040516322f5db0f60e11b815260048101829052600090819073__$5ac3274b8cf1e01ea223bf093142af05b0$__906345ebb61e90602401602060405180830381865af4158015610d1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4091906141d4565b90506000610d4e8583611e78565b604051632255341b60e11b81526004810182905290915073__$5ac3274b8cf1e01ea223bf093142af05b0$__906344aa683690602401602060405180830381865af4158015610da1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc591906141d4565b925050505b92915050565b60405162461bcd60e51b815260206004820152602160248201527f4552524f523a5052532d3233343a4e4f545f5945545f494d504c454d454e54456044820152601160fa1b60648201526084016107f2565b600080610e2f606e611d08565b915091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e979190613e55565b835160405163bd7d9d8560e01b81526001600160601b0389166004820152919250906000906001600160a01b0384169063bd7d9d8590602401600060405180830381865afa158015610eed573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f159190810190613edf565b80519091506001600160601b03838116911614610f745760405162461bcd60e51b815260206004820152601760248201527f504f4c4943595f50524f445543545f4d49534d4154434800000000000000000060448201526064016107f2565b604051639096a1f360e01b81526001600160601b0389166004820152610ff2906001600160a01b03851690639096a1f390602401602060405180830381865afa158015610fc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe99190614207565b60ff16600a1490565b61103e5760405162461bcd60e51b815260206004820152601f60248201527f4552524f523a5052532d3032313a53544154455f4e4f545f4150504c4945440060448201526064016107f2565b60006110486137ce565b60405163242bdc1960e21b81526001600160601b0385166004820152600090819081906001600160a01b038916906390af70649060240161024060405180830381865afa15801561109d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c1919061427d565b90506110cb6137ce565b6110d78a8a8985611e94565b9197509094506110f092508a9150869050858f86612017565b9250602864ffffffffff8b16156111a357606464ffffffffff8c166101a0880181905260e0880151604051631ded81af60e31b81526004810192909252602482015290915073__$d53880c81dc91c20799140d711e5ab8718$__9063ef6c0d7890604401602060405180830381865af4158015611171573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111959190614053565b64ffffffffff166101c08701525b8b156111d9576111bd898b600001518f8960a0015161203e565b91508560a001518660c0018181516111d59190614374565b9052505b600460009054906101000a90046001600160a01b03166001600160a01b03166332e6f9228a8f8887876040518663ffffffff1660e01b81526004016112579594939291906001600160a01b039590951685526001600160601b0393841660208601529190921660408401526060830191909152608082015260a00190565b600060405180830381600087803b15801561127157600080fd5b505af1158015611285573d6000803e3d6000fd5b50505050886001600160a01b0316639a960d528e88846040518463ffffffff1660e01b81526004016112b99392919061419f565b600060405180830381600087803b1580156112d357600080fd5b505af11580156112e7573d6000803e3d6000fd5b505085516040516355e343a960e01b81526001600160601b039091166004820152600092506001600160a01b038b1691506355e343a99060240161018060405180830381865afa15801561133f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113639190614395565b90508060e00151156113845761138485600001518f898860400151886125f6565b5050505050505050505050505050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156113f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141d9190613e10565b1561149e57600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a906024015b602060405180830381865afa15801561147a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d69190613e55565b506002546001600160a01b031690565b6000806000806000806114bf6126fb565b90506000816001600160a01b0316635e78426b8d8f8e8e6040518563ffffffff1660e01b81526004016114f5949392919061444a565b602060405180830381865afa158015611512573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061153691906141d4565b905061154481838b8b61271a565b929850909650945092506115588682614374565b96506115648486614374565b61156e9088614374565b965061157a8388614374565b96505050965096509650965096915050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c6115ae610551565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af41580156115ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116129190614485565b6000805160206149278339815191528054600160401b900460ff1680611645575080546001600160401b03808416911610155b156116635760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b17815561168e8585612db3565b61169783613052565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b60006105d6600080516020614927833981519152546001600160401b031690565b6000600080516020614947833981519152600101828154811061172c5761172c6144ae565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b600080611765606e611d08565b915091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117cd9190613e55565b505050505050565b600080806117e3606e611d08565b915091506117ef611a8d565b6001600160a01b0316635c992fed6040518060e00160405280611810600090565b6001600160601b039081168252865116602082015260400160d260ff16815260200160001515815260200160006001600160a01b031681526020018d6001600160a01b03168152602001604051806020016040528060008152508152506040518263ffffffff1660e01b815260040161188991906144c4565b6020604051808303816000875af11580156118a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118cc9190613e38565b925060006118de8a8a8a8a8a8a6114ae565b505050509050600060405180610200016040528085600001516001600160601b03168152602001886001600160601b03168152602001876001600160c01b03191681526020018c6001600160c01b03191681526020018b8152602001838152602001600081526020018a8152602001898152602001604051806020016040528060008152508152602001600061ffff168152602001600061ffff1681526020016000815260200161198d600090565b64ffffffffff168152600060208201819052604091820152516202f23560ee1b81529091506001600160a01b0384169063bc8d4000906119d390889085906004016144d7565b600060405180830381600087803b1580156119ed57600080fd5b505af1158015611a01573d6000803e3d6000fd5b50505050826001600160a01b0316635d4345cc86611a1d600a90565b6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401600060405180830381600087803b158015611a6657600080fd5b505af1158015611a7a573d6000803e3d6000fd5b5050505050505050979650505050505050565b600080611aa26001546001600160a01b031690565b6001600160a01b031663d39e6043603c611aba611b7c565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611aff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dca9190613e55565b6000611b376001546001600160a01b031690565b6001600160a01b031663d39e60436046611b4f611b7c565b6040516001600160e01b031960e085901b16815260ff92831660048201529116602482015260440161145d565b6000611b86610551565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af4158015611bdb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d69190614207565b6000805160206149278339815191528054600160401b810460ff1615906001600160401b0316600081158015611c325750825b90506000826001600160401b03166001148015611c4e5750303b155b905081158015611c5c575080155b15611c7a5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315611ca457845460ff60401b1916600160401b1785555b611cae8888612db3565b611cb8878761305a565b8315611cfe57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b611d10613790565b600080611d256001546001600160a01b031690565b6040516308b09a5f60e41b81523360048201529091506001600160a01b03821690638b09a5f090602401600060405180830381865afa158015611d6c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611d9491908101906144f9565b9250611daa83604001518560ff90811691161490565b611dec5760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b60448201526064016107f2565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526000906001600160a01b0383169063a48f42e090602401600060405180830381865afa158015611e42573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e6a91908101906144f9565b608001519395939450505050565b6000611e8d8383670de0b6b3a76400006132c8565b9392505050565b6000611e9e6137ce565b6020840151604051634793b4ab60e01b81526001600160601b03821660048201529092506000906001600160a01b03871690634793b4ab90602401600060405180830381865afa158015611ef6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611f1e91908101906145cb565b805160608601519193506001600160601b03908116911614611f7b5760405162461bcd60e51b81526020600482015260166024820152750a09e989286b2be84aa9c88988abe9a92a69a82a886960531b60448201526064016107f2565b60608401516040516355e343a960e01b81526001600160601b03821660048201526000906001600160a01b038916906355e343a99060240161018060405180830381865afa158015611fd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ff59190614395565b905061200981604001518860800151610cc7565b925050509450945094915050565b61201f6137ce565b81846080018181516120319190614374565b9052509295945050505050565b600081156125ee576000856001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015612086573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120aa9190613e55565b60405163242bdc1960e21b81526001600160601b03871660048201526001600160a01b0391909116906390af70649060240161024060405180830381865afa1580156120fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061211e919061427d565b6020810151909150600061213a6001546001600160a01b031690565b604051631c5da14d60e11b81526001600160601b03881660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015612189573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121ad9190613e55565b90506000886001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156121ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122139190613e55565b60608501516040516355e343a960e01b81526001600160601b0390911660048201526001600160a01b0391909116906355e343a99060240161018060405180830381865afa158015612269573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061228d9190614395565b61010081015160a08601516040516346f0526160e11b8152899850929350909173__$a23651848365a6a5ca15f07b4331037f48$__90638de0a4c2906122d790849060040161469c565b602060405180830381865af41580156122f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123189190613e10565b15612384576040516317d5759960e31b81526001600160a01b0386169063beabacc89061234d90879086908d906004016146b3565b600060405180830381600087803b15801561236757600080fd5b505af115801561237b573d6000803e3d6000fd5b505050506125e7565b60a086015160405163012ebd8360e21b815281516004820152602090910151602482015260448101889052600090819073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af41580156123ef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061241391906146d7565b91509150600088610160015190508a886001600160a01b03166321df0da76040518163ffffffff1660e01b8152600401602060405180830381865afa158015612460573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124849190613e55565b604051636eb1769f60e11b81526001600160a01b038a811660048301528b81166024830152919091169063dd62ed3e90604401602060405180830381865afa1580156124d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f891906141d4565b101561251d5786888c604051636d675c4360e01b81526004016107f2939291906146b3565b6040516317d5759960e31b81526001600160a01b0389169063beabacc89061254d908a90859088906004016146b3565b600060405180830381600087803b15801561256757600080fd5b505af115801561257b573d6000803e3d6000fd5b50506040516317d5759960e31b81526001600160a01b038b16925063beabacc891506125af908a90899087906004016146b3565b600060405180830381600087803b1580156125c957600080fd5b505af11580156125dd573d6000803e3d6000fd5b50939b5050505050505b5050505050505b949350505050565b600061260a6001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03881660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015612659573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261268191908101906144f9565b608001516101008501516040516332f7fe0d60e11b815291925082916001600160a01b038316916365effc1a916126c0918a91899089906004016146fb565b600060405180830381600087803b1580156126da57600080fd5b505af11580156126ee573d6000803e3d6000fd5b5050505050505050505050565b6000612705613790565b61270f606e611d08565b506080015192915050565b600080600080600080886001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa158015612761573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127859190613e55565b9050806001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156127c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127e99190613e55565b9150506000886001600160a01b0316631bdd6b766040518163ffffffff1660e01b8152600401602060405180830381865afa15801561282c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128509190613e38565b604051634793b4ab60e01b81526001600160601b038a1660048201529091506000906001600160a01b03841690634793b4ab90602401600060405180830381865afa1580156128a3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526128cb91908101906145cb565b80519091506001600160601b038381169116146129355760405162461bcd60e51b815260206004820152602260248201527f4552524f523a5052532d3033353a42554e444c455f504f4f4c5f4d49534d4154604482015261086960f31b60648201526084016107f2565b6000836001600160a01b03166390af70648c6001600160a01b03166251884a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612983573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129a79190613e38565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240161024060405180830381865afa1580156129ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a10919061427d565b60a081015160405163012ebd8360e21b8152815160048201526020909101516024820152604481018e905290915073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015612a79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a9d91906146d7565b506040516355e343a960e01b81526001600160601b0385166004820152909850600091506001600160a01b038516906355e343a99060240161018060405180830381865afa158015612af3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b179190614395565b606081015160405163012ebd8360e21b8152815160048201526020909101516024820152604481018e905290915073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015612b80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ba491906146d7565b50809750505060008a6001600160a01b031663db6dcc956040518163ffffffff1660e01b8152600401602060405180830381865afa158015612bea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c0e9190613e38565b604051639ad69c6760e01b81526001600160601b03821660048201529091506000906001600160a01b03861690639ad69c679060240160c060405180830381865afa158015612c61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c859190614741565b604080820151905163012ebd8360e21b8152815160048201526020909101516024820152604481018f905290915073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015612cee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d1291906146d7565b5060208481015160405163012ebd8360e21b8152815160048201529101516024820152604481018f905290965073__$a23651848365a6a5ca15f07b4331037f48$__92506304baf60c91506064016040805180830381865af4158015612d7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612da091906146d7565b5080955050505050945094509450949050565b612dbb6133b1565b6000805160206149478339815191526000612deb600080516020614927833981519152546001600160401b031690565b90506000612df7610551565b9050816001600160401b0316600103612e245760028301805462ffffff191662ffffff8316179055612e72565b600283015462ffffff90811690821611612e725760405162461bcd60e51b815260206004820152600f60248201526e24a72b20a624a2102b22a929a4a7a760891b60448201526064016107f2565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b038089168484015287168382015280516356db0c1960e11b81529051606084019273__$d53880c81dc91c20799140d711e5ab8718$__9263adb6183292600480830193928290030181865af4158015612f26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f4a9190614053565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517fad0a0fc10465a8dd9da3ad5f43e1a7fff4b4578551c76f0ae8deb844f0d0bf68906116d79083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b6101a96133b1565b6000805160206149278339815191528054600160401b810460ff1615906001600160401b031660008115801561308d5750825b90506000826001600160401b031660011480156130a95750303b155b9050811580156130b7575080155b156130d55760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156130ff57845460ff60401b1916600160401b1785555b6000808780602001905181019061311691906147d7565b9092509050613125828a6133ea565b6001546001600160a01b031663d39e6043608c613140611b7c565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015613185573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131a99190613e55565b600380546001600160a01b0319166001600160a01b039283161790556001541663d39e60436131d660dc90565b6131de611b7c565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015613223573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132479190613e55565b600480546001600160a01b0319166001600160a01b039290921691909117905561327763fefde12b60e01b613455565b505083156132bf57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b6000808060001985870985870292508281108382030391505080600003613302578382816132f8576132f8614806565b0492505050611e8d565b8084116133495760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b60448201526064016107f2565b600084868809600260036001881981018916988990049182028318808302840302808302840302808302840302808302840302808302840302918202909203026000889003889004909101858311909403939093029303949094049190911702949350505050565b60008051602061492783398151915254600160401b900460ff166133e857604051631afcd79f60e31b815260040160405180910390fd5b565b600060d26133f6611b7c565b6040805160ff938416602082015292909116908201526060016040516020818303038152906040529050600061342b8461347a565b9050600061343e8583603c8488886134e5565b61344e637b6a51fd60e01b613455565b5050505050565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b604051636939560f60e11b81526001600160a01b0382166004820181905260009163d272ac1e90602401602060405180830381865afa1580156134c1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dca9190613e38565b6135266301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b61353082876135b1565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b861515021781559050600181016135a08382614867565b506132bf6303fb044760e21b613455565b6001600160a01b0382166136075760405162461bcd60e51b815260206004820152601e60248201527f4e66744f776e61626c653a20696e697469616c206f776e65722069732030000060448201526064016107f2565b600280546001600160a01b0319166001600160a01b03841617905561362b8161362f565b5050565b6001546001600160a01b0316156136685760015460405163fcdbf2d960e01b81526001600160a01b0390911660048201526024016107f2565b6001600160a01b03811661368f5760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b6000036136c55760405163fdeac91f60e01b81526001600160a01b03821660048201526024016107f2565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b815263cc7f293160e01b60048201526301ffc9a790602401602060405180830381865afa92505050801561373f575060408051601f3d908101601f1916820190925261373c91810190613e10565b60015b6137675760405163fdeac91f60e01b81526001600160a01b03821660048201526024016107f2565b8061362b5760405163fdeac91f60e01b81526001600160a01b03831660048201526024016107f2565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b60405180610120016040528060006001600160601b03168152602001613807604051806040016040528060008152602001600081525090565b81526020016060815260200160008152602001600081526020016000815260200160008152602001600064ffffffffff168152602001600064ffffffffff1681525090565b60006020828403121561385e57600080fd5b81356001600160e01b031981168114611e8d57600080fd5b6001600160601b03811681146101fe57600080fd5b60006020828403121561389d57600080fd5b8135611e8d81613876565b60005b838110156138c35781810151838201526020016138ab565b50506000910152565b600081518084526138e48160208601602086016138a8565b601f01601f19169290920160200192915050565b60006001600160601b038083511684528060208401511660208501525060ff6040830151166040840152606082015115156060840152608082015160018060a01b0380821660808601528060a08501511660a0860152505060c082015160e060c08501526125ee60e08501826138cc565b60408152600061397c60408301856138f8565b828103602084015261398e81856138cc565b95945050505050565b62ffffff811681146101fe57600080fd5b6000602082840312156139ba57600080fd5b8135611e8d81613997565b64ffffffffff811681146101fe57600080fd5b600080604083850312156139eb57600080fd5b82356139f681613876565b91506020830135613a06816139c5565b809150509250929050565b60008060408385031215613a2457600080fd5b50508035926020909101359150565b80151581146101fe57600080fd5b600080600060608486031215613a5657600080fd5b8335613a6181613876565b92506020840135613a7181613a33565b91506040840135613a81816139c5565b809150509250925092565b6001600160c01b0319811681146101fe57600080fd5b634e487b7160e01b600052604160045260246000fd5b60405161020081016001600160401b0381118282101715613adb57613adb613aa2565b60405290565b60405161018081016001600160401b0381118282101715613adb57613adb613aa2565b60405161012081016001600160401b0381118282101715613adb57613adb613aa2565b60405160e081016001600160401b0381118282101715613adb57613adb613aa2565b604051601f8201601f191681016001600160401b0381118282101715613b7157613b71613aa2565b604052919050565b60006001600160401b03821115613b9257613b92613aa2565b50601f01601f191660200190565b600082601f830112613bb157600080fd5b8135613bc4613bbf82613b79565b613b49565b818152846020838601011115613bd957600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060008060c08789031215613c0f57600080fd5b8635613c1a81613a8c565b9550602087013594506040870135935060608701356001600160401b03811115613c4357600080fd5b613c4f89828a01613ba0565b9350506080870135613c6081613876565b915060a0870135613c7081613a8c565b809150509295509295509295565b6001600160a01b03811681146101fe57600080fd5b600080600060608486031215613ca857600080fd5b8335613cb381613c7e565b92506020840135613cc381613c7e565b915060408401356001600160401b03811115613cde57600080fd5b613cea86828701613ba0565b9150509250925092565b600060208284031215613d0657600080fd5b5035919050565b600080600080600080600060e0888a031215613d2857600080fd5b8735613d3381613c7e565b96506020880135613d4381613a8c565b9550604088013594506060880135935060808801356001600160401b03811115613d6c57600080fd5b613d788a828b01613ba0565b93505060a0880135613d8981613876565b915060c0880135613d9981613a8c565b8091505092959891949750929550565b600060208284031215613dbb57600080fd5b8151611e8d81613997565b600181811c90821680613dda57607f821691505b602082108103613dfa57634e487b7160e01b600052602260045260246000fd5b50919050565b8051613e0b81613a33565b919050565b600060208284031215613e2257600080fd5b8151611e8d81613a33565b8051613e0b81613876565b600060208284031215613e4a57600080fd5b8151611e8d81613876565b600060208284031215613e6757600080fd5b8151611e8d81613c7e565b8051613e0b81613a8c565b600082601f830112613e8e57600080fd5b8151613e9c613bbf82613b79565b818152846020838601011115613eb157600080fd5b6125ee8260208301602087016138a8565b805161ffff81168114613e0b57600080fd5b8051613e0b816139c5565b600060208284031215613ef157600080fd5b81516001600160401b0380821115613f0857600080fd5b908301906102008286031215613f1d57600080fd5b613f25613ab8565b613f2e83613e2d565b8152613f3c60208401613e2d565b6020820152613f4d60408401613e72565b6040820152613f5e60608401613e72565b60608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015183811115613f9f57600080fd5b613fab88828701613e7d565b8284015250506101208084015183811115613fc557600080fd5b613fd188828701613e7d565b8284015250506101409150613fe7828401613ec2565b828201526101609150613ffb828401613ec2565b82820152610180915081830151828201526101a0915061401c828401613ed4565b828201526101c09150614030828401613ed4565b828201526101e09150614044828401613ed4565b91810191909152949350505050565b60006020828403121561406557600080fd5b8151611e8d816139c5565b80516001600160601b031682526000610200602083015161409c60208601826001600160601b03169052565b5060408301516140b860408601826001600160c01b0319169052565b5060608301516140d460608601826001600160c01b0319169052565b506080830151608085015260a083015160a085015260c083015160c085015260e083015160e0850152610100808401518282870152614115838701826138cc565b92505050610120808401518583038287015261413183826138cc565b925050506101408084015161414b8287018261ffff169052565b50506101608381015161ffff169085015261018080840151908501526101a08084015164ffffffffff908116918601919091526101c0808501518216908601526101e0938401511692909301919091525090565b6001600160601b03841681526060602082015260006141c16060830185614070565b905060ff83166040830152949350505050565b6000602082840312156141e657600080fd5b5051919050565b60ff811681146101fe57600080fd5b8051613e0b816141ed565b60006020828403121561421957600080fd5b8151611e8d816141ed565b8051613e0b81613c7e565b60006040828403121561424157600080fd5b604051604081018181106001600160401b038211171561426357614263613aa2565b604052825181526020928301519281019290925250919050565b6000610240828403121561429057600080fd5b614298613ae1565b6142a183614224565b81526142af60208401614224565b60208201526142c060408401613e2d565b60408201526142d160608401613e2d565b60608201526142e3846080850161422f565b60808201526142f58460c0850161422f565b60a08201526101006143098582860161422f565b60c083015261014061431d8682870161422f565b60e084015261433086610180870161422f565b82840152614342866101c0870161422f565b6101208401526143556102008601613e00565b90830152506143676102208401614224565b6101608201529392505050565b80820180821115610dca57634e487b7160e01b600052601160045260246000fd5b600061018082840312156143a857600080fd5b6143b0613b04565b6143b983613e2d565b81526143c760208401614224565b6020820152604083015160408201526143e3846060850161422f565b60608201526143f58460a0850161422f565b60808201526144078460e0850161422f565b60a08201526144196101208401613e00565b60c082015261442b6101408401613e00565b60e082015261443d6101608401614224565b6101008201529392505050565b8481526001600160401b0360c01b8416602082015282604082015260806060820152600061447b60808301846138cc565b9695505050505050565b60006020828403121561449757600080fd5b81516001600160401b0381168114611e8d57600080fd5b634e487b7160e01b600052603260045260246000fd5b602081526000611e8d60208301846138f8565b6001600160601b03831681526040602082015260006125ee6040830184614070565b60006020828403121561450b57600080fd5b81516001600160401b038082111561452257600080fd5b9083019060e0828603121561453657600080fd5b61453e613b27565b61454783613e2d565b815261455560208401613e2d565b6020820152614566604084016141fc565b604082015261457760608401613e00565b606082015261458860808401614224565b608082015261459960a08401614224565b60a082015260c0830151828111156145b057600080fd5b6145bc87828601613e7d565b60c08301525095945050505050565b6000602082840312156145dd57600080fd5b81516001600160401b03808211156145f457600080fd5b90830190610140828603121561460957600080fd5b614611613b04565b61461a83613e2d565b8152614629866020850161422f565b602082015260608301518281111561464057600080fd5b61464c87828601613e7d565b6040830152506080830151606082015260a0830151608082015260c083015160a082015260e083015160c0820152610100915061468a828401613ed4565b60e08201526140446101208401613ed4565b815181526020808301519082015260408101610dca565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600080604083850312156146ea57600080fd5b505080516020909101519092909150565b6001600160601b038516815260806020820152600061471d60808301866138cc565b828103604084015261472f81866138cc565b91505082606083015295945050505050565b600060c0828403121561475357600080fd5b60405160a081018181106001600160401b038211171561477557614775613aa2565b604052825161478381613876565b8152602083015161479381613c7e565b60208201526147a5846040850161422f565b604082015260808301516147b881613a33565b606082015260a08301516147cb81613c7e565b60808201529392505050565b600080604083850312156147ea57600080fd5b82516147f581613c7e565b6020840151909250613a0681613c7e565b634e487b7160e01b600052601260045260246000fd5b601f82111561486257600081815260208120601f850160051c810160208610156148435750805b601f850160051c820191505b818110156117cd5782815560010161484f565b505050565b81516001600160401b0381111561488057614880613aa2565b6148948161488e8454613dc6565b8461481c565b602080601f8311600181146148c957600084156148b15750858301515b600019600386901b1c1916600185901b1785556117cd565b600085815260208120601f198616915b828110156148f8578886015182559484019460019091019084016148d9565b50858210156149165787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fef0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a26469706673582212204fcfaa13ceb6aee5c87c0d2077efc2967c4dc1f61085761a1dbaffb7d8f8ee4464736f6c63430008140033",
774
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101a95760003560e01c8063644c45e0116100f9578063b88da75911610097578063caf4e3d411610071578063caf4e3d414610526578063cc9fc59a1461052e578063cde749f414610536578063cf7a1d771461053e57600080fd5b8063b88da759146104ed578063bbfbbfba14610500578063c2c749871461051357600080fd5b80639cdaa7f9116100d35780639cdaa7f91461046a578063a745e3df146104a5578063b3c65015146104b8578063b68d1809146104d857600080fd5b8063644c45e01461040f578063893d20e81461043b578063946dfcfe1461044357600080fd5b80634d459c90116101665780635ab1bd53116101405780635ab1bd53146103b15780635fd1a5f5146103d6578063603ccaad146103e9578063630361f6146103fc57600080fd5b80634d459c90146102725780634d5e16a91461038b5780634f4213331461039e57600080fd5b806301ffc9a7146101ae5780630aaba8e8146101f05780630d8e6e2c146102035780630fec111c1461021f578063138461e0146102355780631eff4b221461023d575b600080fd5b6101db6101bc36600461384c565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6102016101fe36600461388b565b50565b005b61020b610551565b60405162ffffff90911681526020016101e7565b6102276105db565b6040516101e7929190613969565b61020161072e565b6102647f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b6040519081526020016101e7565b61032e6102803660046139a8565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915260008051602061494783398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a0016101e7565b6102016103993660046139d8565b610950565b6101db6103ac3660046139a8565b610c14565b6001546001600160a01b03165b6040516001600160a01b0390911681526020016101e7565b6102646103e4366004613a11565b610cc7565b6102016103f736600461388b565b610dd0565b61020161040a366004613a41565b610e22565b600154600160a01b90046001600160601b03165b6040516001600160601b0390911681526020016101e7565b6103be611394565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed90154610264565b61047d610478366004613bf6565b6114ae565b604080519586526020860194909452928401919091526060830152608082015260a0016101e7565b6102016104b3366004613c93565b61158c565b6104c06116e6565b6040516001600160401b0390911681526020016101e7565b60d25b60405160ff90911681526020016101e7565b61020b6104fb366004613cf4565b611707565b61020161050e3660046139d8565b611758565b610423610521366004613d0d565b6117d5565b6103be611a8d565b6103be611b23565b6104db611b7c565b61020161054c366004613c93565b611bff565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156105b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d69190613da9565b905090565b6105e3613790565b606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e0016040528061062f6001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610677611394565b6001600160a01b0316815260200182600101805461069490613dc6565b80601f01602080910402602001604051908101604052809291908181526020018280546106c090613dc6565b801561070d5780601f106106e25761010080835404028352916020019161070d565b820191906000526020600020905b8154815290600101906020018083116106f057829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610790573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b49190613e10565b156107fb576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166108245760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa15801561086d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108919190613e10565b6108b9576040516372657a5160e01b81526001600160a01b03821660048201526024016107f2565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa158015610903573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109279190613e38565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b600061095c606e611d08565b9150506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa15801561099f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c39190613e55565b60405163bd7d9d8560e01b81526001600160601b03861660048201529091506000906001600160a01b0383169063bd7d9d8590602401600060405180830381865afa158015610a16573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a3e9190810190613edf565b6101a081015160405163790a38ad60e01b815264ffffffffff909116600482015290915073__$d53880c81dc91c20799140d711e5ab8718$__9063790a38ad90602401602060405180830381865af4158015610a9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac29190613e10565b610b0e5760405162461bcd60e51b815260206004820152601f60248201527f4552524f523a5052532d3032303a414c52454144595f4143544956415445440060448201526064016107f2565b64ffffffffff84166101a0820181905260e0820151604051631ded81af60e31b81526004810192909252602482015273__$d53880c81dc91c20799140d711e5ab8718$__9063ef6c0d7890604401602060405180830381865af4158015610b79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9d9190614053565b64ffffffffff166101c0820152604051634d4b06a960e11b81526001600160a01b03841690639a960d5290610bdb908890859060649060040161419f565b600060405180830381600087803b158015610bf557600080fd5b505af1158015610c09573d6000803e3d6000fd5b505050505050505050565b60008060008051602061494783398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af4158015610c9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc091906141d4565b1192915050565b6040516322f5db0f60e11b815260048101829052600090819073__$5ac3274b8cf1e01ea223bf093142af05b0$__906345ebb61e90602401602060405180830381865af4158015610d1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4091906141d4565b90506000610d4e8583611e78565b604051632255341b60e11b81526004810182905290915073__$5ac3274b8cf1e01ea223bf093142af05b0$__906344aa683690602401602060405180830381865af4158015610da1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc591906141d4565b925050505b92915050565b60405162461bcd60e51b815260206004820152602160248201527f4552524f523a5052532d3233343a4e4f545f5945545f494d504c454d454e54456044820152601160fa1b60648201526084016107f2565b600080610e2f606e611d08565b915091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e979190613e55565b835160405163bd7d9d8560e01b81526001600160601b0389166004820152919250906000906001600160a01b0384169063bd7d9d8590602401600060405180830381865afa158015610eed573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f159190810190613edf565b80519091506001600160601b03838116911614610f745760405162461bcd60e51b815260206004820152601760248201527f504f4c4943595f50524f445543545f4d49534d4154434800000000000000000060448201526064016107f2565b604051639096a1f360e01b81526001600160601b0389166004820152610ff2906001600160a01b03851690639096a1f390602401602060405180830381865afa158015610fc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe99190614207565b60ff16600a1490565b61103e5760405162461bcd60e51b815260206004820152601f60248201527f4552524f523a5052532d3032313a53544154455f4e4f545f4150504c4945440060448201526064016107f2565b60006110486137ce565b60405163242bdc1960e21b81526001600160601b0385166004820152600090819081906001600160a01b038916906390af70649060240161024060405180830381865afa15801561109d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c1919061427d565b90506110cb6137ce565b6110d78a8a8985611e94565b9197509094506110f092508a9150869050858f86612017565b9250602864ffffffffff8b16156111a357606464ffffffffff8c166101a0880181905260e0880151604051631ded81af60e31b81526004810192909252602482015290915073__$d53880c81dc91c20799140d711e5ab8718$__9063ef6c0d7890604401602060405180830381865af4158015611171573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111959190614053565b64ffffffffff166101c08701525b8b156111d9576111bd898b600001518f8960a0015161203e565b91508560a001518660c0018181516111d59190614374565b9052505b600460009054906101000a90046001600160a01b03166001600160a01b03166332e6f9228a8f8887876040518663ffffffff1660e01b81526004016112579594939291906001600160a01b039590951685526001600160601b0393841660208601529190921660408401526060830191909152608082015260a00190565b600060405180830381600087803b15801561127157600080fd5b505af1158015611285573d6000803e3d6000fd5b50505050886001600160a01b0316639a960d528e88846040518463ffffffff1660e01b81526004016112b99392919061419f565b600060405180830381600087803b1580156112d357600080fd5b505af11580156112e7573d6000803e3d6000fd5b505085516040516355e343a960e01b81526001600160601b039091166004820152600092506001600160a01b038b1691506355e343a99060240161018060405180830381865afa15801561133f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113639190614395565b90508060e00151156113845761138485600001518f898860400151886125f6565b5050505050505050505050505050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156113f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141d9190613e10565b1561149e57600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a906024015b602060405180830381865afa15801561147a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d69190613e55565b506002546001600160a01b031690565b6000806000806000806114bf6126fb565b90506000816001600160a01b0316635e78426b8d8f8e8e6040518563ffffffff1660e01b81526004016114f5949392919061444a565b602060405180830381865afa158015611512573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061153691906141d4565b905061154481838b8b61271a565b929850909650945092506115588682614374565b96506115648486614374565b61156e9088614374565b965061157a8388614374565b96505050965096509650965096915050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c6115ae610551565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af41580156115ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116129190614485565b6000805160206149278339815191528054600160401b900460ff1680611645575080546001600160401b03808416911610155b156116635760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b17815561168e8585612db3565b61169783613052565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b60006105d6600080516020614927833981519152546001600160401b031690565b6000600080516020614947833981519152600101828154811061172c5761172c6144ae565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b600080611765606e611d08565b915091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117cd9190613e55565b505050505050565b600080806117e3606e611d08565b915091506117ef611a8d565b6001600160a01b0316635c992fed6040518060e00160405280611810600090565b6001600160601b039081168252865116602082015260400160d260ff16815260200160001515815260200160006001600160a01b031681526020018d6001600160a01b03168152602001604051806020016040528060008152508152506040518263ffffffff1660e01b815260040161188991906144c4565b6020604051808303816000875af11580156118a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118cc9190613e38565b925060006118de8a8a8a8a8a8a6114ae565b505050509050600060405180610200016040528085600001516001600160601b03168152602001886001600160601b03168152602001876001600160c01b03191681526020018c6001600160c01b03191681526020018b8152602001838152602001600081526020018a8152602001898152602001604051806020016040528060008152508152602001600061ffff168152602001600061ffff1681526020016000815260200161198d600090565b64ffffffffff168152600060208201819052604091820152516202f23560ee1b81529091506001600160a01b0384169063bc8d4000906119d390889085906004016144d7565b600060405180830381600087803b1580156119ed57600080fd5b505af1158015611a01573d6000803e3d6000fd5b50505050826001600160a01b0316635d4345cc86611a1d600a90565b6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401600060405180830381600087803b158015611a6657600080fd5b505af1158015611a7a573d6000803e3d6000fd5b5050505050505050979650505050505050565b600080611aa26001546001600160a01b031690565b6001600160a01b031663d39e6043603c611aba611b7c565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611aff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dca9190613e55565b6000611b376001546001600160a01b031690565b6001600160a01b031663d39e60436046611b4f611b7c565b6040516001600160e01b031960e085901b16815260ff92831660048201529116602482015260440161145d565b6000611b86610551565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af4158015611bdb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d69190614207565b6000805160206149278339815191528054600160401b810460ff1615906001600160401b0316600081158015611c325750825b90506000826001600160401b03166001148015611c4e5750303b155b905081158015611c5c575080155b15611c7a5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315611ca457845460ff60401b1916600160401b1785555b611cae8888612db3565b611cb8878761305a565b8315611cfe57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b611d10613790565b600080611d256001546001600160a01b031690565b6040516308b09a5f60e41b81523360048201529091506001600160a01b03821690638b09a5f090602401600060405180830381865afa158015611d6c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611d9491908101906144f9565b9250611daa83604001518560ff90811691161490565b611dec5760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b60448201526064016107f2565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526000906001600160a01b0383169063a48f42e090602401600060405180830381865afa158015611e42573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e6a91908101906144f9565b608001519395939450505050565b6000611e8d8383670de0b6b3a76400006132c8565b9392505050565b6000611e9e6137ce565b6020840151604051634793b4ab60e01b81526001600160601b03821660048201529092506000906001600160a01b03871690634793b4ab90602401600060405180830381865afa158015611ef6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611f1e91908101906145cb565b805160608601519193506001600160601b03908116911614611f7b5760405162461bcd60e51b81526020600482015260166024820152750a09e989286b2be84aa9c88988abe9a92a69a82a886960531b60448201526064016107f2565b60608401516040516355e343a960e01b81526001600160601b03821660048201526000906001600160a01b038916906355e343a99060240161018060405180830381865afa158015611fd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ff59190614395565b905061200981604001518860800151610cc7565b925050509450945094915050565b61201f6137ce565b81846080018181516120319190614374565b9052509295945050505050565b600081156125ee576000856001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015612086573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120aa9190613e55565b60405163242bdc1960e21b81526001600160601b03871660048201526001600160a01b0391909116906390af70649060240161024060405180830381865afa1580156120fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061211e919061427d565b6020810151909150600061213a6001546001600160a01b031690565b604051631c5da14d60e11b81526001600160601b03881660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015612189573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121ad9190613e55565b90506000886001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156121ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122139190613e55565b60608501516040516355e343a960e01b81526001600160601b0390911660048201526001600160a01b0391909116906355e343a99060240161018060405180830381865afa158015612269573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061228d9190614395565b61010081015160a08601516040516346f0526160e11b8152899850929350909173__$a23651848365a6a5ca15f07b4331037f48$__90638de0a4c2906122d790849060040161469c565b602060405180830381865af41580156122f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123189190613e10565b15612384576040516317d5759960e31b81526001600160a01b0386169063beabacc89061234d90879086908d906004016146b3565b600060405180830381600087803b15801561236757600080fd5b505af115801561237b573d6000803e3d6000fd5b505050506125e7565b60a086015160405163012ebd8360e21b815281516004820152602090910151602482015260448101889052600090819073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af41580156123ef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061241391906146d7565b91509150600088610160015190508a886001600160a01b03166321df0da76040518163ffffffff1660e01b8152600401602060405180830381865afa158015612460573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124849190613e55565b604051636eb1769f60e11b81526001600160a01b038a811660048301528b81166024830152919091169063dd62ed3e90604401602060405180830381865afa1580156124d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f891906141d4565b101561251d5786888c604051636d675c4360e01b81526004016107f2939291906146b3565b6040516317d5759960e31b81526001600160a01b0389169063beabacc89061254d908a90859088906004016146b3565b600060405180830381600087803b15801561256757600080fd5b505af115801561257b573d6000803e3d6000fd5b50506040516317d5759960e31b81526001600160a01b038b16925063beabacc891506125af908a90899087906004016146b3565b600060405180830381600087803b1580156125c957600080fd5b505af11580156125dd573d6000803e3d6000fd5b50939b5050505050505b5050505050505b949350505050565b600061260a6001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03881660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015612659573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261268191908101906144f9565b608001516101008501516040516332f7fe0d60e11b815291925082916001600160a01b038316916365effc1a916126c0918a91899089906004016146fb565b600060405180830381600087803b1580156126da57600080fd5b505af11580156126ee573d6000803e3d6000fd5b5050505050505050505050565b6000612705613790565b61270f606e611d08565b506080015192915050565b600080600080600080886001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa158015612761573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127859190613e55565b9050806001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156127c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127e99190613e55565b9150506000886001600160a01b0316631bdd6b766040518163ffffffff1660e01b8152600401602060405180830381865afa15801561282c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128509190613e38565b604051634793b4ab60e01b81526001600160601b038a1660048201529091506000906001600160a01b03841690634793b4ab90602401600060405180830381865afa1580156128a3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526128cb91908101906145cb565b80519091506001600160601b038381169116146129355760405162461bcd60e51b815260206004820152602260248201527f4552524f523a5052532d3033353a42554e444c455f504f4f4c5f4d49534d4154604482015261086960f31b60648201526084016107f2565b6000836001600160a01b03166390af70648c6001600160a01b03166251884a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612983573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129a79190613e38565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240161024060405180830381865afa1580156129ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a10919061427d565b60a081015160405163012ebd8360e21b8152815160048201526020909101516024820152604481018e905290915073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015612a79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a9d91906146d7565b506040516355e343a960e01b81526001600160601b0385166004820152909850600091506001600160a01b038516906355e343a99060240161018060405180830381865afa158015612af3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b179190614395565b606081015160405163012ebd8360e21b8152815160048201526020909101516024820152604481018e905290915073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015612b80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ba491906146d7565b50809750505060008a6001600160a01b031663db6dcc956040518163ffffffff1660e01b8152600401602060405180830381865afa158015612bea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c0e9190613e38565b604051639ad69c6760e01b81526001600160601b03821660048201529091506000906001600160a01b03861690639ad69c679060240160c060405180830381865afa158015612c61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c859190614741565b604080820151905163012ebd8360e21b8152815160048201526020909101516024820152604481018f905290915073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015612cee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d1291906146d7565b5060208481015160405163012ebd8360e21b8152815160048201529101516024820152604481018f905290965073__$a23651848365a6a5ca15f07b4331037f48$__92506304baf60c91506064016040805180830381865af4158015612d7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612da091906146d7565b5080955050505050945094509450949050565b612dbb6133b1565b6000805160206149478339815191526000612deb600080516020614927833981519152546001600160401b031690565b90506000612df7610551565b9050816001600160401b0316600103612e245760028301805462ffffff191662ffffff8316179055612e72565b600283015462ffffff90811690821611612e725760405162461bcd60e51b815260206004820152600f60248201526e24a72b20a624a2102b22a929a4a7a760891b60448201526064016107f2565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b038089168484015287168382015280516356db0c1960e11b81529051606084019273__$d53880c81dc91c20799140d711e5ab8718$__9263adb6183292600480830193928290030181865af4158015612f26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f4a9190614053565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517fad0a0fc10465a8dd9da3ad5f43e1a7fff4b4578551c76f0ae8deb844f0d0bf68906116d79083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b6101a96133b1565b6000805160206149278339815191528054600160401b810460ff1615906001600160401b031660008115801561308d5750825b90506000826001600160401b031660011480156130a95750303b155b9050811580156130b7575080155b156130d55760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156130ff57845460ff60401b1916600160401b1785555b6000808780602001905181019061311691906147d7565b9092509050613125828a6133ea565b6001546001600160a01b031663d39e6043608c613140611b7c565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015613185573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131a99190613e55565b600380546001600160a01b0319166001600160a01b039283161790556001541663d39e60436131d660dc90565b6131de611b7c565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015613223573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132479190613e55565b600480546001600160a01b0319166001600160a01b039290921691909117905561327763fefde12b60e01b613455565b505083156132bf57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b6000808060001985870985870292508281108382030391505080600003613302578382816132f8576132f8614806565b0492505050611e8d565b8084116133495760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b60448201526064016107f2565b600084868809600260036001881981018916988990049182028318808302840302808302840302808302840302808302840302808302840302918202909203026000889003889004909101858311909403939093029303949094049190911702949350505050565b60008051602061492783398151915254600160401b900460ff166133e857604051631afcd79f60e31b815260040160405180910390fd5b565b600060d26133f6611b7c565b6040805160ff938416602082015292909116908201526060016040516020818303038152906040529050600061342b8461347a565b9050600061343e8583603c8488886134e5565b61344e637b6a51fd60e01b613455565b5050505050565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b604051636939560f60e11b81526001600160a01b0382166004820181905260009163d272ac1e90602401602060405180830381865afa1580156134c1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dca9190613e38565b6135266301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b61353082876135b1565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b861515021781559050600181016135a08382614867565b506132bf6303fb044760e21b613455565b6001600160a01b0382166136075760405162461bcd60e51b815260206004820152601e60248201527f4e66744f776e61626c653a20696e697469616c206f776e65722069732030000060448201526064016107f2565b600280546001600160a01b0319166001600160a01b03841617905561362b8161362f565b5050565b6001546001600160a01b0316156136685760015460405163fcdbf2d960e01b81526001600160a01b0390911660048201526024016107f2565b6001600160a01b03811661368f5760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b6000036136c55760405163fdeac91f60e01b81526001600160a01b03821660048201526024016107f2565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b815263cc7f293160e01b60048201526301ffc9a790602401602060405180830381865afa92505050801561373f575060408051601f3d908101601f1916820190925261373c91810190613e10565b60015b6137675760405163fdeac91f60e01b81526001600160a01b03821660048201526024016107f2565b8061362b5760405163fdeac91f60e01b81526001600160a01b03831660048201526024016107f2565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b60405180610120016040528060006001600160601b03168152602001613807604051806040016040528060008152602001600081525090565b81526020016060815260200160008152602001600081526020016000815260200160008152602001600064ffffffffff168152602001600064ffffffffff1681525090565b60006020828403121561385e57600080fd5b81356001600160e01b031981168114611e8d57600080fd5b6001600160601b03811681146101fe57600080fd5b60006020828403121561389d57600080fd5b8135611e8d81613876565b60005b838110156138c35781810151838201526020016138ab565b50506000910152565b600081518084526138e48160208601602086016138a8565b601f01601f19169290920160200192915050565b60006001600160601b038083511684528060208401511660208501525060ff6040830151166040840152606082015115156060840152608082015160018060a01b0380821660808601528060a08501511660a0860152505060c082015160e060c08501526125ee60e08501826138cc565b60408152600061397c60408301856138f8565b828103602084015261398e81856138cc565b95945050505050565b62ffffff811681146101fe57600080fd5b6000602082840312156139ba57600080fd5b8135611e8d81613997565b64ffffffffff811681146101fe57600080fd5b600080604083850312156139eb57600080fd5b82356139f681613876565b91506020830135613a06816139c5565b809150509250929050565b60008060408385031215613a2457600080fd5b50508035926020909101359150565b80151581146101fe57600080fd5b600080600060608486031215613a5657600080fd5b8335613a6181613876565b92506020840135613a7181613a33565b91506040840135613a81816139c5565b809150509250925092565b6001600160c01b0319811681146101fe57600080fd5b634e487b7160e01b600052604160045260246000fd5b60405161020081016001600160401b0381118282101715613adb57613adb613aa2565b60405290565b60405161018081016001600160401b0381118282101715613adb57613adb613aa2565b60405161012081016001600160401b0381118282101715613adb57613adb613aa2565b60405160e081016001600160401b0381118282101715613adb57613adb613aa2565b604051601f8201601f191681016001600160401b0381118282101715613b7157613b71613aa2565b604052919050565b60006001600160401b03821115613b9257613b92613aa2565b50601f01601f191660200190565b600082601f830112613bb157600080fd5b8135613bc4613bbf82613b79565b613b49565b818152846020838601011115613bd957600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060008060c08789031215613c0f57600080fd5b8635613c1a81613a8c565b9550602087013594506040870135935060608701356001600160401b03811115613c4357600080fd5b613c4f89828a01613ba0565b9350506080870135613c6081613876565b915060a0870135613c7081613a8c565b809150509295509295509295565b6001600160a01b03811681146101fe57600080fd5b600080600060608486031215613ca857600080fd5b8335613cb381613c7e565b92506020840135613cc381613c7e565b915060408401356001600160401b03811115613cde57600080fd5b613cea86828701613ba0565b9150509250925092565b600060208284031215613d0657600080fd5b5035919050565b600080600080600080600060e0888a031215613d2857600080fd5b8735613d3381613c7e565b96506020880135613d4381613a8c565b9550604088013594506060880135935060808801356001600160401b03811115613d6c57600080fd5b613d788a828b01613ba0565b93505060a0880135613d8981613876565b915060c0880135613d9981613a8c565b8091505092959891949750929550565b600060208284031215613dbb57600080fd5b8151611e8d81613997565b600181811c90821680613dda57607f821691505b602082108103613dfa57634e487b7160e01b600052602260045260246000fd5b50919050565b8051613e0b81613a33565b919050565b600060208284031215613e2257600080fd5b8151611e8d81613a33565b8051613e0b81613876565b600060208284031215613e4a57600080fd5b8151611e8d81613876565b600060208284031215613e6757600080fd5b8151611e8d81613c7e565b8051613e0b81613a8c565b600082601f830112613e8e57600080fd5b8151613e9c613bbf82613b79565b818152846020838601011115613eb157600080fd5b6125ee8260208301602087016138a8565b805161ffff81168114613e0b57600080fd5b8051613e0b816139c5565b600060208284031215613ef157600080fd5b81516001600160401b0380821115613f0857600080fd5b908301906102008286031215613f1d57600080fd5b613f25613ab8565b613f2e83613e2d565b8152613f3c60208401613e2d565b6020820152613f4d60408401613e72565b6040820152613f5e60608401613e72565b60608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015183811115613f9f57600080fd5b613fab88828701613e7d565b8284015250506101208084015183811115613fc557600080fd5b613fd188828701613e7d565b8284015250506101409150613fe7828401613ec2565b828201526101609150613ffb828401613ec2565b82820152610180915081830151828201526101a0915061401c828401613ed4565b828201526101c09150614030828401613ed4565b828201526101e09150614044828401613ed4565b91810191909152949350505050565b60006020828403121561406557600080fd5b8151611e8d816139c5565b80516001600160601b031682526000610200602083015161409c60208601826001600160601b03169052565b5060408301516140b860408601826001600160c01b0319169052565b5060608301516140d460608601826001600160c01b0319169052565b506080830151608085015260a083015160a085015260c083015160c085015260e083015160e0850152610100808401518282870152614115838701826138cc565b92505050610120808401518583038287015261413183826138cc565b925050506101408084015161414b8287018261ffff169052565b50506101608381015161ffff169085015261018080840151908501526101a08084015164ffffffffff908116918601919091526101c0808501518216908601526101e0938401511692909301919091525090565b6001600160601b03841681526060602082015260006141c16060830185614070565b905060ff83166040830152949350505050565b6000602082840312156141e657600080fd5b5051919050565b60ff811681146101fe57600080fd5b8051613e0b816141ed565b60006020828403121561421957600080fd5b8151611e8d816141ed565b8051613e0b81613c7e565b60006040828403121561424157600080fd5b604051604081018181106001600160401b038211171561426357614263613aa2565b604052825181526020928301519281019290925250919050565b6000610240828403121561429057600080fd5b614298613ae1565b6142a183614224565b81526142af60208401614224565b60208201526142c060408401613e2d565b60408201526142d160608401613e2d565b60608201526142e3846080850161422f565b60808201526142f58460c0850161422f565b60a08201526101006143098582860161422f565b60c083015261014061431d8682870161422f565b60e084015261433086610180870161422f565b82840152614342866101c0870161422f565b6101208401526143556102008601613e00565b90830152506143676102208401614224565b6101608201529392505050565b80820180821115610dca57634e487b7160e01b600052601160045260246000fd5b600061018082840312156143a857600080fd5b6143b0613b04565b6143b983613e2d565b81526143c760208401614224565b6020820152604083015160408201526143e3846060850161422f565b60608201526143f58460a0850161422f565b60808201526144078460e0850161422f565b60a08201526144196101208401613e00565b60c082015261442b6101408401613e00565b60e082015261443d6101608401614224565b6101008201529392505050565b8481526001600160401b0360c01b8416602082015282604082015260806060820152600061447b60808301846138cc565b9695505050505050565b60006020828403121561449757600080fd5b81516001600160401b0381168114611e8d57600080fd5b634e487b7160e01b600052603260045260246000fd5b602081526000611e8d60208301846138f8565b6001600160601b03831681526040602082015260006125ee6040830184614070565b60006020828403121561450b57600080fd5b81516001600160401b038082111561452257600080fd5b9083019060e0828603121561453657600080fd5b61453e613b27565b61454783613e2d565b815261455560208401613e2d565b6020820152614566604084016141fc565b604082015261457760608401613e00565b606082015261458860808401614224565b608082015261459960a08401614224565b60a082015260c0830151828111156145b057600080fd5b6145bc87828601613e7d565b60c08301525095945050505050565b6000602082840312156145dd57600080fd5b81516001600160401b03808211156145f457600080fd5b90830190610140828603121561460957600080fd5b614611613b04565b61461a83613e2d565b8152614629866020850161422f565b602082015260608301518281111561464057600080fd5b61464c87828601613e7d565b6040830152506080830151606082015260a0830151608082015260c083015160a082015260e083015160c0820152610100915061468a828401613ed4565b60e08201526140446101208401613ed4565b815181526020808301519082015260408101610dca565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600080604083850312156146ea57600080fd5b505080516020909101519092909150565b6001600160601b038516815260806020820152600061471d60808301866138cc565b828103604084015261472f81866138cc565b91505082606083015295945050505050565b600060c0828403121561475357600080fd5b60405160a081018181106001600160401b038211171561477557614775613aa2565b604052825161478381613876565b8152602083015161479381613c7e565b60208201526147a5846040850161422f565b604082015260808301516147b881613a33565b606082015260a08301516147cb81613c7e565b60808201529392505050565b600080604083850312156147ea57600080fd5b82516147f581613c7e565b6020840151909250613a0681613c7e565b634e487b7160e01b600052601260045260246000fd5b601f82111561486257600081815260208120601f850160051c810160208610156148435750805b601f850160051c820191505b818110156117cd5782815560010161484f565b505050565b81516001600160401b0381111561488057614880613aa2565b6148948161488e8454613dc6565b8461481c565b602080601f8311600181146148c957600084156148b15750858301515b600019600386901b1c1916600185901b1785556117cd565b600085815260208120601f198616915b828110156148f8578886015182559484019460019091019084016148d9565b50858210156149165787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fef0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a26469706673582212204fcfaa13ceb6aee5c87c0d2077efc2967c4dc1f61085761a1dbaffb7d8f8ee4464736f6c63430008140033",
775
+ "linkReferences": {
776
+ "contracts/types/Blocknumber.sol": {
777
+ "BlocknumberLib": [
778
+ {
779
+ "length": 20,
780
+ "start": 3484
781
+ }
782
+ ]
783
+ },
784
+ "contracts/types/Fee.sol": {
785
+ "FeeLib": [
786
+ {
787
+ "length": 20,
788
+ "start": 9193
789
+ },
790
+ {
791
+ "length": 20,
792
+ "start": 9456
793
+ },
794
+ {
795
+ "length": 20,
796
+ "start": 11130
797
+ },
798
+ {
799
+ "length": 20,
800
+ "start": 11393
801
+ },
802
+ {
803
+ "length": 20,
804
+ "start": 11759
805
+ },
806
+ {
807
+ "length": 20,
808
+ "start": 11899
809
+ }
810
+ ]
811
+ },
812
+ "contracts/types/NftId.sol": {
813
+ "NftIdLib": [
814
+ {
815
+ "length": 20,
816
+ "start": 2192
817
+ },
818
+ {
819
+ "length": 20,
820
+ "start": 5369
821
+ }
822
+ ]
823
+ },
824
+ "contracts/types/Timestamp.sol": {
825
+ "TimestampLib": [
826
+ {
827
+ "length": 20,
828
+ "start": 2974
829
+ },
830
+ {
831
+ "length": 20,
832
+ "start": 3193
833
+ },
834
+ {
835
+ "length": 20,
836
+ "start": 4721
837
+ },
838
+ {
839
+ "length": 20,
840
+ "start": 12326
841
+ }
842
+ ]
843
+ },
844
+ "contracts/types/UFixed.sol": {
845
+ "UFixedLib": [
846
+ {
847
+ "length": 20,
848
+ "start": 3612
849
+ },
850
+ {
851
+ "length": 20,
852
+ "start": 3745
853
+ }
854
+ ]
855
+ },
856
+ "contracts/types/Version.sol": {
857
+ "VersionLib": [
858
+ {
859
+ "length": 20,
860
+ "start": 1714
861
+ },
862
+ {
863
+ "length": 20,
864
+ "start": 5832
865
+ },
866
+ {
867
+ "length": 20,
868
+ "start": 7387
869
+ }
870
+ ]
871
+ }
872
+ },
873
+ "deployedLinkReferences": {
874
+ "contracts/types/Blocknumber.sol": {
875
+ "BlocknumberLib": [
876
+ {
877
+ "length": 20,
878
+ "start": 3170
879
+ }
880
+ ]
881
+ },
882
+ "contracts/types/Fee.sol": {
883
+ "FeeLib": [
884
+ {
885
+ "length": 20,
886
+ "start": 8879
887
+ },
888
+ {
889
+ "length": 20,
890
+ "start": 9142
891
+ },
892
+ {
893
+ "length": 20,
894
+ "start": 10816
895
+ },
896
+ {
897
+ "length": 20,
898
+ "start": 11079
899
+ },
900
+ {
901
+ "length": 20,
902
+ "start": 11445
903
+ },
904
+ {
905
+ "length": 20,
906
+ "start": 11585
907
+ }
908
+ ]
909
+ },
910
+ "contracts/types/NftId.sol": {
911
+ "NftIdLib": [
912
+ {
913
+ "length": 20,
914
+ "start": 1878
915
+ },
916
+ {
917
+ "length": 20,
918
+ "start": 5055
919
+ }
920
+ ]
921
+ },
922
+ "contracts/types/Timestamp.sol": {
923
+ "TimestampLib": [
924
+ {
925
+ "length": 20,
926
+ "start": 2660
927
+ },
928
+ {
929
+ "length": 20,
930
+ "start": 2879
931
+ },
932
+ {
933
+ "length": 20,
934
+ "start": 4407
935
+ },
936
+ {
937
+ "length": 20,
938
+ "start": 12012
939
+ }
940
+ ]
941
+ },
942
+ "contracts/types/UFixed.sol": {
943
+ "UFixedLib": [
944
+ {
945
+ "length": 20,
946
+ "start": 3298
947
+ },
948
+ {
949
+ "length": 20,
950
+ "start": 3431
951
+ }
952
+ ]
953
+ },
954
+ "contracts/types/Version.sol": {
955
+ "VersionLib": [
956
+ {
957
+ "length": 20,
958
+ "start": 1400
959
+ },
960
+ {
961
+ "length": 20,
962
+ "start": 5518
963
+ },
964
+ {
965
+ "length": 20,
966
+ "start": 7073
967
+ }
968
+ ]
969
+ }
970
+ }
971
+ }