@etherisc/gif-next 0.0.2-d2fd9d7-008 → 0.0.2-d30275e-758

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. package/README.md +28 -14
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +842 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +946 -219
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/IComponent.sol/IComponent.json +605 -0
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +848 -31
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +846 -57
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +682 -9
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +806 -243
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +632 -194
  18. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  19. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  20. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  21. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +69 -66
  22. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
  23. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +5 -0
  24. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  25. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +303 -1340
  26. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  27. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +337 -168
  28. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  29. package/artifacts/contracts/instance/Instance.sol/Instance.json +439 -3102
  30. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  31. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +609 -178
  32. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +4 -0
  33. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +124 -0
  34. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  35. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +251 -270
  36. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  37. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +457 -402
  38. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  39. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +292 -131
  40. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
  41. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2663 -0
  42. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
  43. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +11 -27
  44. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  45. package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +277 -178
  46. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  47. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  48. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  49. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +40 -10
  50. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  51. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
  52. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  53. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +71 -45
  54. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  55. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  56. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
  57. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  58. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  59. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  60. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  61. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  62. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  63. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +902 -0
  64. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  65. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +649 -0
  66. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  67. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1326 -0
  68. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  69. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +725 -0
  70. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  71. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +1072 -0
  72. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  73. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +685 -0
  74. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  75. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1022 -223
  76. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  77. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +392 -79
  78. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  79. package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IApplicationService.sol/IApplicationService.json} +235 -200
  80. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  81. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +714 -0
  82. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  83. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +602 -0
  84. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  85. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +585 -160
  86. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  87. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +969 -0
  88. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  89. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +536 -304
  90. package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.dbg.json +4 -0
  91. package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/service/IPricingService.sol/IPricingService.json} +248 -172
  92. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  93. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +78 -388
  94. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  95. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1575 -0
  96. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +741 -0
  98. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  99. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +832 -400
  100. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  101. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +338 -93
  102. package/artifacts/contracts/instance/service/PricingService.sol/PricingService.dbg.json +4 -0
  103. package/artifacts/contracts/instance/service/PricingService.sol/PricingService.json +988 -0
  104. package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.json +689 -0
  106. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  107. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +289 -564
  108. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
  109. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +289 -124
  110. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  111. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
  112. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  113. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +244 -133
  114. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  115. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +149 -230
  116. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  117. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
  118. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  119. package/artifacts/contracts/registry/Registry.sol/Registry.json +257 -235
  120. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  121. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  122. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  123. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +200 -335
  124. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  125. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +298 -145
  126. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  127. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +559 -0
  128. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  129. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +141 -53
  130. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  131. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  132. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  133. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  134. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +40 -29
  135. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  136. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
  137. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  138. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +21 -34
  139. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  140. package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
  141. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  142. package/artifacts/contracts/shared/IService.sol/IService.json +86 -172
  143. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  144. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  145. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  146. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +120 -27
  147. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  148. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
  149. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  150. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +294 -61
  151. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  152. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +129 -51
  153. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  154. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
  155. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  156. package/artifacts/contracts/shared/Service.sol/Service.json +191 -163
  157. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  158. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
  159. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  160. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  161. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  162. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  163. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  164. package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
  165. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  166. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +129 -51
  167. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  168. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +6 -6
  169. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  170. package/artifacts/contracts/test/TestService.sol/TestService.json +210 -214
  171. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  172. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  173. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  174. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  175. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -190
  176. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  177. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  178. package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +4 -0
  179. package/artifacts/contracts/types/Amount.sol/AmountLib.json +209 -0
  180. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  182. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  183. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  184. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +179 -0
  185. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  187. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/Fee.sol/FeeLib.json +40 -9
  189. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  190. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  191. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  192. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
  193. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  194. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  195. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  196. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  197. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  198. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  199. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +209 -0
  200. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  201. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
  202. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  203. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  204. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  205. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  206. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  207. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  208. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  209. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  210. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  211. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +38 -7
  212. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  213. package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
  214. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  215. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
  216. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  217. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  218. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  219. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
  220. package/contracts/components/Component.sol +253 -0
  221. package/contracts/components/Distribution.sol +204 -83
  222. package/contracts/components/IComponent.sol +76 -0
  223. package/contracts/components/IDistributionComponent.sol +44 -17
  224. package/contracts/components/IPoolComponent.sol +88 -41
  225. package/contracts/components/IProductComponent.sol +10 -5
  226. package/contracts/components/Pool.sol +217 -182
  227. package/contracts/components/Product.sol +248 -163
  228. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
  229. package/contracts/instance/BundleManager.sol +17 -20
  230. package/contracts/instance/Cloneable.sol +7 -2
  231. package/contracts/instance/IInstance.sol +57 -33
  232. package/contracts/instance/IInstanceService.sol +56 -9
  233. package/contracts/instance/Instance.sol +150 -367
  234. package/contracts/instance/InstanceAccessManager.sol +430 -177
  235. package/contracts/instance/InstanceAuthorizationsLib.sol +300 -0
  236. package/contracts/instance/InstanceReader.sol +44 -39
  237. package/contracts/instance/InstanceService.sol +243 -166
  238. package/contracts/instance/InstanceServiceManager.sol +6 -9
  239. package/contracts/instance/InstanceStore.sol +208 -0
  240. package/contracts/instance/ObjectManager.sol +11 -24
  241. package/contracts/instance/base/ComponentService.sol +148 -0
  242. package/contracts/instance/base/KeyValueStore.sol +13 -5
  243. package/contracts/instance/base/Lifecycle.sol +23 -6
  244. package/contracts/instance/module/IAccess.sol +36 -20
  245. package/contracts/instance/module/IBundle.sol +8 -5
  246. package/contracts/instance/module/IComponents.sol +41 -0
  247. package/contracts/instance/module/IDistribution.sol +2 -0
  248. package/contracts/instance/module/IPolicy.sol +41 -9
  249. package/contracts/instance/module/ISetup.sol +7 -20
  250. package/contracts/instance/service/ApplicationService.sol +185 -0
  251. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  252. package/contracts/instance/service/BundleService.sol +440 -0
  253. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  254. package/contracts/instance/service/ClaimService.sol +239 -0
  255. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  256. package/contracts/instance/service/DistributionService.sol +287 -33
  257. package/contracts/instance/service/DistributionServiceManager.sol +7 -10
  258. package/contracts/instance/service/IApplicationService.sol +61 -0
  259. package/contracts/instance/service/IBundleService.sol +102 -0
  260. package/contracts/instance/service/IClaimService.sol +92 -0
  261. package/contracts/instance/service/IDistributionService.sol +74 -1
  262. package/contracts/instance/service/IPolicyService.sol +139 -0
  263. package/contracts/instance/service/IPoolService.sol +76 -25
  264. package/contracts/instance/service/IPricingService.sol +36 -0
  265. package/contracts/instance/service/IProductService.sol +2 -72
  266. package/contracts/instance/service/PolicyService.sol +577 -0
  267. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  268. package/contracts/instance/service/PoolService.sol +232 -183
  269. package/contracts/instance/service/PoolServiceManager.sol +6 -9
  270. package/contracts/instance/service/PricingService.sol +275 -0
  271. package/contracts/instance/service/PricingServiceManager.sol +51 -0
  272. package/contracts/instance/service/ProductService.sol +109 -469
  273. package/contracts/instance/service/ProductServiceManager.sol +2 -2
  274. package/contracts/registry/ChainNft.sol +9 -1
  275. package/contracts/registry/IRegistry.sol +39 -19
  276. package/contracts/registry/IRegistryService.sol +31 -13
  277. package/contracts/registry/ITransferInterceptor.sol +1 -0
  278. package/contracts/registry/Registry.sol +243 -224
  279. package/contracts/registry/RegistryAccessManager.sol +216 -0
  280. package/contracts/registry/RegistryService.sol +101 -173
  281. package/contracts/registry/RegistryServiceManager.sol +21 -39
  282. package/contracts/registry/ReleaseManager.sol +324 -0
  283. package/contracts/registry/TokenRegistry.sol +22 -17
  284. package/contracts/shared/ERC165.sol +14 -12
  285. package/contracts/shared/INftOwnable.sol +11 -10
  286. package/contracts/shared/IPolicyHolder.sol +26 -0
  287. package/contracts/shared/IRegisterable.sol +4 -6
  288. package/contracts/shared/IRegistryLinked.sol +12 -0
  289. package/contracts/shared/IService.sol +5 -4
  290. package/contracts/shared/IVersionable.sol +4 -47
  291. package/contracts/shared/NftOwnable.sol +66 -80
  292. package/contracts/shared/PolicyHolder.sol +81 -0
  293. package/contracts/shared/ProxyManager.sol +100 -25
  294. package/contracts/shared/Registerable.sol +16 -32
  295. package/contracts/shared/RegistryLinked.sol +48 -0
  296. package/contracts/shared/Service.sol +41 -24
  297. package/contracts/shared/TokenHandler.sol +11 -5
  298. package/contracts/shared/Versionable.sol +4 -92
  299. package/contracts/test/TestRegisterable.sol +1 -1
  300. package/contracts/test/TestService.sol +4 -3
  301. package/contracts/types/Amount.sol +70 -0
  302. package/contracts/types/Blocknumber.sol +1 -0
  303. package/contracts/types/ClaimId.sol +75 -0
  304. package/contracts/types/DistributorType.sol +2 -2
  305. package/contracts/types/Fee.sol +13 -5
  306. package/contracts/types/NftId.sol +8 -0
  307. package/contracts/types/ObjectType.sol +16 -7
  308. package/contracts/types/PayoutId.sol +82 -0
  309. package/contracts/types/Referral.sol +4 -0
  310. package/contracts/types/RoleId.sol +26 -19
  311. package/contracts/types/Seconds.sol +54 -0
  312. package/contracts/types/StateId.sol +7 -2
  313. package/contracts/types/Timestamp.sol +18 -13
  314. package/contracts/types/UFixed.sol +1 -0
  315. package/contracts/types/Version.sol +1 -0
  316. package/package.json +3 -3
  317. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  318. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -327
  319. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  320. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -280
  321. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
  322. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
  323. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
  324. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
  325. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
  326. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
  327. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  328. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  329. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  330. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  331. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  332. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  333. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  334. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  335. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  336. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  337. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  338. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  339. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  340. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  341. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  342. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  343. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  344. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  345. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  346. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  347. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  348. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  349. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  350. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  351. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  352. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  353. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  354. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  355. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  356. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  357. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  358. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  359. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  360. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  361. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.json +0 -101
  362. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  363. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1132
  364. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  365. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  366. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  367. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  368. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  369. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  370. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
  371. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  372. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
  373. package/contracts/components/BaseComponent.sol +0 -91
  374. package/contracts/components/IBaseComponent.sol +0 -25
  375. package/contracts/experiment/cloning/Cloner.sol +0 -47
  376. package/contracts/experiment/errors/Require.sol +0 -38
  377. package/contracts/experiment/errors/Revert.sol +0 -44
  378. package/contracts/experiment/inheritance/A.sol +0 -53
  379. package/contracts/experiment/inheritance/B.sol +0 -28
  380. package/contracts/experiment/inheritance/C.sol +0 -34
  381. package/contracts/experiment/inheritance/IA.sol +0 -13
  382. package/contracts/experiment/inheritance/IB.sol +0 -10
  383. package/contracts/experiment/inheritance/IC.sol +0 -12
  384. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  385. package/contracts/experiment/statemachine/ISM.sol +0 -25
  386. package/contracts/experiment/statemachine/SM.sol +0 -57
  387. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  388. package/contracts/experiment/types/TypeA.sol +0 -47
  389. package/contracts/experiment/types/TypeB.sol +0 -29
  390. package/contracts/instance/AccessManagedSimple.sol +0 -115
  391. package/contracts/instance/AccessManagerSimple.sol +0 -692
  392. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  393. package/contracts/instance/base/ComponentServiceBase.sol +0 -134
  394. package/contracts/instance/base/IInstanceBase.sol +0 -23
  395. package/contracts/instance/service/ComponentOwnerService.sol +0 -317
  396. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  397. package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -0,0 +1,1072 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ClaimService",
4
+ "sourceName": "contracts/instance/service/ClaimService.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "authority",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "name": "AccessManagedInvalidAuthority",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "address",
21
+ "name": "caller",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
28
+ }
29
+ ],
30
+ "name": "AccessManagedRequiredDelay",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "caller",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "NftId",
48
+ "name": "policyNftId",
49
+ "type": "uint96"
50
+ },
51
+ {
52
+ "internalType": "ClaimId",
53
+ "name": "claimId",
54
+ "type": "uint16"
55
+ },
56
+ {
57
+ "internalType": "StateId",
58
+ "name": "expectedState",
59
+ "type": "uint8"
60
+ },
61
+ {
62
+ "internalType": "StateId",
63
+ "name": "actualState",
64
+ "type": "uint8"
65
+ }
66
+ ],
67
+ "name": "ErrorClaimServiceClaimNotInExpectedState",
68
+ "type": "error"
69
+ },
70
+ {
71
+ "inputs": [
72
+ {
73
+ "internalType": "NftId",
74
+ "name": "policyNftId",
75
+ "type": "uint96"
76
+ },
77
+ {
78
+ "internalType": "ClaimId",
79
+ "name": "claimId",
80
+ "type": "uint16"
81
+ },
82
+ {
83
+ "internalType": "Amount",
84
+ "name": "claimAmount",
85
+ "type": "uint96"
86
+ },
87
+ {
88
+ "internalType": "Amount",
89
+ "name": "paidAmount",
90
+ "type": "uint96"
91
+ }
92
+ ],
93
+ "name": "ErrorClaimServiceClaimWithMissingPayouts",
94
+ "type": "error"
95
+ },
96
+ {
97
+ "inputs": [
98
+ {
99
+ "internalType": "NftId",
100
+ "name": "policyNftId",
101
+ "type": "uint96"
102
+ },
103
+ {
104
+ "internalType": "ClaimId",
105
+ "name": "claimId",
106
+ "type": "uint16"
107
+ },
108
+ {
109
+ "internalType": "uint8",
110
+ "name": "openPayouts",
111
+ "type": "uint8"
112
+ }
113
+ ],
114
+ "name": "ErrorClaimServiceClaimWithOpenPayouts",
115
+ "type": "error"
116
+ },
117
+ {
118
+ "inputs": [
119
+ {
120
+ "internalType": "address",
121
+ "name": "component",
122
+ "type": "address"
123
+ }
124
+ ],
125
+ "name": "ErrorComponentServiceComponentLocked",
126
+ "type": "error"
127
+ },
128
+ {
129
+ "inputs": [
130
+ {
131
+ "internalType": "address",
132
+ "name": "component",
133
+ "type": "address"
134
+ },
135
+ {
136
+ "internalType": "ObjectType",
137
+ "name": "expectedType",
138
+ "type": "uint8"
139
+ },
140
+ {
141
+ "internalType": "ObjectType",
142
+ "name": "foundType",
143
+ "type": "uint8"
144
+ }
145
+ ],
146
+ "name": "ErrorComponentServiceComponentTypeInvalid",
147
+ "type": "error"
148
+ },
149
+ {
150
+ "inputs": [
151
+ {
152
+ "internalType": "NftId",
153
+ "name": "instanceNftId",
154
+ "type": "uint96"
155
+ },
156
+ {
157
+ "internalType": "RoleId",
158
+ "name": "requiredRole",
159
+ "type": "uint64"
160
+ },
161
+ {
162
+ "internalType": "address",
163
+ "name": "sender",
164
+ "type": "address"
165
+ }
166
+ ],
167
+ "name": "ErrorComponentServiceExpectedRoleMissing",
168
+ "type": "error"
169
+ },
170
+ {
171
+ "inputs": [
172
+ {
173
+ "internalType": "address",
174
+ "name": "component",
175
+ "type": "address"
176
+ },
177
+ {
178
+ "internalType": "ObjectType",
179
+ "name": "requiredType",
180
+ "type": "uint8"
181
+ },
182
+ {
183
+ "internalType": "ObjectType",
184
+ "name": "componentType",
185
+ "type": "uint8"
186
+ }
187
+ ],
188
+ "name": "ErrorComponentServiceInvalidType",
189
+ "type": "error"
190
+ },
191
+ {
192
+ "inputs": [
193
+ {
194
+ "internalType": "address",
195
+ "name": "component",
196
+ "type": "address"
197
+ }
198
+ ],
199
+ "name": "ErrorComponentServiceNotComponent",
200
+ "type": "error"
201
+ },
202
+ {
203
+ "inputs": [
204
+ {
205
+ "internalType": "address",
206
+ "name": "component",
207
+ "type": "address"
208
+ },
209
+ {
210
+ "internalType": "address",
211
+ "name": "initialOwner",
212
+ "type": "address"
213
+ },
214
+ {
215
+ "internalType": "address",
216
+ "name": "sender",
217
+ "type": "address"
218
+ }
219
+ ],
220
+ "name": "ErrorComponentServiceSenderNotOwner",
221
+ "type": "error"
222
+ },
223
+ {
224
+ "inputs": [
225
+ {
226
+ "internalType": "address",
227
+ "name": "sender",
228
+ "type": "address"
229
+ }
230
+ ],
231
+ "name": "ErrorComponentServiceSenderNotService",
232
+ "type": "error"
233
+ },
234
+ {
235
+ "inputs": [
236
+ {
237
+ "internalType": "NftId",
238
+ "name": "nftId",
239
+ "type": "uint96"
240
+ }
241
+ ],
242
+ "name": "ErrorNftOwnableAlreadyLinked",
243
+ "type": "error"
244
+ },
245
+ {
246
+ "inputs": [
247
+ {
248
+ "internalType": "address",
249
+ "name": "contractAddress",
250
+ "type": "address"
251
+ }
252
+ ],
253
+ "name": "ErrorNftOwnableContractNotRegistered",
254
+ "type": "error"
255
+ },
256
+ {
257
+ "inputs": [],
258
+ "name": "ErrorNftOwnableInitialOwnerZero",
259
+ "type": "error"
260
+ },
261
+ {
262
+ "inputs": [
263
+ {
264
+ "internalType": "address",
265
+ "name": "account",
266
+ "type": "address"
267
+ }
268
+ ],
269
+ "name": "ErrorNftOwnableNotOwner",
270
+ "type": "error"
271
+ },
272
+ {
273
+ "inputs": [
274
+ {
275
+ "internalType": "address",
276
+ "name": "registryAddress",
277
+ "type": "address"
278
+ }
279
+ ],
280
+ "name": "ErrorNotRegistry",
281
+ "type": "error"
282
+ },
283
+ {
284
+ "inputs": [],
285
+ "name": "InvalidInitialization",
286
+ "type": "error"
287
+ },
288
+ {
289
+ "inputs": [],
290
+ "name": "NotInitializing",
291
+ "type": "error"
292
+ },
293
+ {
294
+ "anonymous": false,
295
+ "inputs": [
296
+ {
297
+ "indexed": false,
298
+ "internalType": "address",
299
+ "name": "authority",
300
+ "type": "address"
301
+ }
302
+ ],
303
+ "name": "AuthorityUpdated",
304
+ "type": "event"
305
+ },
306
+ {
307
+ "anonymous": false,
308
+ "inputs": [
309
+ {
310
+ "indexed": false,
311
+ "internalType": "uint64",
312
+ "name": "version",
313
+ "type": "uint64"
314
+ }
315
+ ],
316
+ "name": "Initialized",
317
+ "type": "event"
318
+ },
319
+ {
320
+ "inputs": [],
321
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
322
+ "outputs": [
323
+ {
324
+ "internalType": "bytes32",
325
+ "name": "",
326
+ "type": "bytes32"
327
+ }
328
+ ],
329
+ "stateMutability": "view",
330
+ "type": "function"
331
+ },
332
+ {
333
+ "inputs": [],
334
+ "name": "REGISTERABLE_LOCATION_V1",
335
+ "outputs": [
336
+ {
337
+ "internalType": "bytes32",
338
+ "name": "",
339
+ "type": "bytes32"
340
+ }
341
+ ],
342
+ "stateMutability": "view",
343
+ "type": "function"
344
+ },
345
+ {
346
+ "inputs": [],
347
+ "name": "authority",
348
+ "outputs": [
349
+ {
350
+ "internalType": "address",
351
+ "name": "",
352
+ "type": "address"
353
+ }
354
+ ],
355
+ "stateMutability": "view",
356
+ "type": "function"
357
+ },
358
+ {
359
+ "inputs": [
360
+ {
361
+ "internalType": "contract IInstance",
362
+ "name": "instance",
363
+ "type": "address"
364
+ },
365
+ {
366
+ "internalType": "contract InstanceReader",
367
+ "name": "instanceReader",
368
+ "type": "address"
369
+ },
370
+ {
371
+ "internalType": "NftId",
372
+ "name": "policyNftId",
373
+ "type": "uint96"
374
+ },
375
+ {
376
+ "internalType": "ClaimId",
377
+ "name": "claimId",
378
+ "type": "uint16"
379
+ }
380
+ ],
381
+ "name": "close",
382
+ "outputs": [],
383
+ "stateMutability": "nonpayable",
384
+ "type": "function"
385
+ },
386
+ {
387
+ "inputs": [
388
+ {
389
+ "internalType": "contract IInstance",
390
+ "name": "instance",
391
+ "type": "address"
392
+ },
393
+ {
394
+ "internalType": "contract InstanceReader",
395
+ "name": "instanceReader",
396
+ "type": "address"
397
+ },
398
+ {
399
+ "internalType": "NftId",
400
+ "name": "policyNftId",
401
+ "type": "uint96"
402
+ },
403
+ {
404
+ "internalType": "ClaimId",
405
+ "name": "claimId",
406
+ "type": "uint16"
407
+ },
408
+ {
409
+ "internalType": "Amount",
410
+ "name": "confirmedAmount",
411
+ "type": "uint96"
412
+ }
413
+ ],
414
+ "name": "confirm",
415
+ "outputs": [],
416
+ "stateMutability": "nonpayable",
417
+ "type": "function"
418
+ },
419
+ {
420
+ "inputs": [
421
+ {
422
+ "internalType": "contract IInstance",
423
+ "name": "instance",
424
+ "type": "address"
425
+ },
426
+ {
427
+ "internalType": "NftId",
428
+ "name": "policyNftId",
429
+ "type": "uint96"
430
+ },
431
+ {
432
+ "internalType": "PayoutId",
433
+ "name": "payoutId",
434
+ "type": "uint24"
435
+ },
436
+ {
437
+ "internalType": "Amount",
438
+ "name": "payoutAmount",
439
+ "type": "uint96"
440
+ },
441
+ {
442
+ "internalType": "bytes",
443
+ "name": "payoutData",
444
+ "type": "bytes"
445
+ }
446
+ ],
447
+ "name": "createPayout",
448
+ "outputs": [],
449
+ "stateMutability": "nonpayable",
450
+ "type": "function"
451
+ },
452
+ {
453
+ "inputs": [
454
+ {
455
+ "internalType": "contract IInstance",
456
+ "name": "instance",
457
+ "type": "address"
458
+ },
459
+ {
460
+ "internalType": "contract InstanceReader",
461
+ "name": "instanceReader",
462
+ "type": "address"
463
+ },
464
+ {
465
+ "internalType": "NftId",
466
+ "name": "policyNftId",
467
+ "type": "uint96"
468
+ },
469
+ {
470
+ "internalType": "ClaimId",
471
+ "name": "claimId",
472
+ "type": "uint16"
473
+ }
474
+ ],
475
+ "name": "decline",
476
+ "outputs": [],
477
+ "stateMutability": "nonpayable",
478
+ "type": "function"
479
+ },
480
+ {
481
+ "inputs": [],
482
+ "name": "getDomain",
483
+ "outputs": [
484
+ {
485
+ "internalType": "ObjectType",
486
+ "name": "",
487
+ "type": "uint8"
488
+ }
489
+ ],
490
+ "stateMutability": "pure",
491
+ "type": "function"
492
+ },
493
+ {
494
+ "inputs": [],
495
+ "name": "getInitialInfo",
496
+ "outputs": [
497
+ {
498
+ "components": [
499
+ {
500
+ "internalType": "NftId",
501
+ "name": "nftId",
502
+ "type": "uint96"
503
+ },
504
+ {
505
+ "internalType": "NftId",
506
+ "name": "parentNftId",
507
+ "type": "uint96"
508
+ },
509
+ {
510
+ "internalType": "ObjectType",
511
+ "name": "objectType",
512
+ "type": "uint8"
513
+ },
514
+ {
515
+ "internalType": "bool",
516
+ "name": "isInterceptor",
517
+ "type": "bool"
518
+ },
519
+ {
520
+ "internalType": "address",
521
+ "name": "objectAddress",
522
+ "type": "address"
523
+ },
524
+ {
525
+ "internalType": "address",
526
+ "name": "initialOwner",
527
+ "type": "address"
528
+ },
529
+ {
530
+ "internalType": "bytes",
531
+ "name": "data",
532
+ "type": "bytes"
533
+ }
534
+ ],
535
+ "internalType": "struct IRegistry.ObjectInfo",
536
+ "name": "info",
537
+ "type": "tuple"
538
+ }
539
+ ],
540
+ "stateMutability": "view",
541
+ "type": "function"
542
+ },
543
+ {
544
+ "inputs": [],
545
+ "name": "getInstanceService",
546
+ "outputs": [
547
+ {
548
+ "internalType": "contract InstanceService",
549
+ "name": "",
550
+ "type": "address"
551
+ }
552
+ ],
553
+ "stateMutability": "view",
554
+ "type": "function"
555
+ },
556
+ {
557
+ "inputs": [],
558
+ "name": "getNftId",
559
+ "outputs": [
560
+ {
561
+ "internalType": "NftId",
562
+ "name": "",
563
+ "type": "uint96"
564
+ }
565
+ ],
566
+ "stateMutability": "view",
567
+ "type": "function"
568
+ },
569
+ {
570
+ "inputs": [],
571
+ "name": "getOwner",
572
+ "outputs": [
573
+ {
574
+ "internalType": "address",
575
+ "name": "",
576
+ "type": "address"
577
+ }
578
+ ],
579
+ "stateMutability": "view",
580
+ "type": "function"
581
+ },
582
+ {
583
+ "inputs": [],
584
+ "name": "getRegistry",
585
+ "outputs": [
586
+ {
587
+ "internalType": "contract IRegistry",
588
+ "name": "",
589
+ "type": "address"
590
+ }
591
+ ],
592
+ "stateMutability": "view",
593
+ "type": "function"
594
+ },
595
+ {
596
+ "inputs": [],
597
+ "name": "getRegistryAddress",
598
+ "outputs": [
599
+ {
600
+ "internalType": "address",
601
+ "name": "",
602
+ "type": "address"
603
+ }
604
+ ],
605
+ "stateMutability": "view",
606
+ "type": "function"
607
+ },
608
+ {
609
+ "inputs": [],
610
+ "name": "getRegistryService",
611
+ "outputs": [
612
+ {
613
+ "internalType": "contract IRegistryService",
614
+ "name": "",
615
+ "type": "address"
616
+ }
617
+ ],
618
+ "stateMutability": "view",
619
+ "type": "function"
620
+ },
621
+ {
622
+ "inputs": [],
623
+ "name": "getVersion",
624
+ "outputs": [
625
+ {
626
+ "internalType": "Version",
627
+ "name": "",
628
+ "type": "uint24"
629
+ }
630
+ ],
631
+ "stateMutability": "pure",
632
+ "type": "function"
633
+ },
634
+ {
635
+ "inputs": [],
636
+ "name": "initializeERC165",
637
+ "outputs": [],
638
+ "stateMutability": "nonpayable",
639
+ "type": "function"
640
+ },
641
+ {
642
+ "inputs": [
643
+ {
644
+ "internalType": "address",
645
+ "name": "initialOwner",
646
+ "type": "address"
647
+ },
648
+ {
649
+ "internalType": "address",
650
+ "name": "registryAddress",
651
+ "type": "address"
652
+ }
653
+ ],
654
+ "name": "initializeNftOwnable",
655
+ "outputs": [],
656
+ "stateMutability": "nonpayable",
657
+ "type": "function"
658
+ },
659
+ {
660
+ "inputs": [
661
+ {
662
+ "internalType": "address",
663
+ "name": "registryAddress",
664
+ "type": "address"
665
+ },
666
+ {
667
+ "internalType": "NftId",
668
+ "name": "parentNftId",
669
+ "type": "uint96"
670
+ },
671
+ {
672
+ "internalType": "ObjectType",
673
+ "name": "objectType",
674
+ "type": "uint8"
675
+ },
676
+ {
677
+ "internalType": "bool",
678
+ "name": "isInterceptor",
679
+ "type": "bool"
680
+ },
681
+ {
682
+ "internalType": "address",
683
+ "name": "initialOwner",
684
+ "type": "address"
685
+ },
686
+ {
687
+ "internalType": "bytes",
688
+ "name": "registryData",
689
+ "type": "bytes"
690
+ }
691
+ ],
692
+ "name": "initializeRegisterable",
693
+ "outputs": [],
694
+ "stateMutability": "nonpayable",
695
+ "type": "function"
696
+ },
697
+ {
698
+ "inputs": [
699
+ {
700
+ "internalType": "address",
701
+ "name": "registryAddress",
702
+ "type": "address"
703
+ }
704
+ ],
705
+ "name": "initializeRegistryLinked",
706
+ "outputs": [],
707
+ "stateMutability": "nonpayable",
708
+ "type": "function"
709
+ },
710
+ {
711
+ "inputs": [
712
+ {
713
+ "internalType": "address",
714
+ "name": "registry",
715
+ "type": "address"
716
+ },
717
+ {
718
+ "internalType": "address",
719
+ "name": "authority",
720
+ "type": "address"
721
+ },
722
+ {
723
+ "internalType": "address",
724
+ "name": "initialOwner",
725
+ "type": "address"
726
+ }
727
+ ],
728
+ "name": "initializeService",
729
+ "outputs": [],
730
+ "stateMutability": "nonpayable",
731
+ "type": "function"
732
+ },
733
+ {
734
+ "inputs": [
735
+ {
736
+ "internalType": "address",
737
+ "name": "activatedBy",
738
+ "type": "address"
739
+ },
740
+ {
741
+ "internalType": "bytes",
742
+ "name": "data",
743
+ "type": "bytes"
744
+ }
745
+ ],
746
+ "name": "initializeVersionable",
747
+ "outputs": [],
748
+ "stateMutability": "nonpayable",
749
+ "type": "function"
750
+ },
751
+ {
752
+ "inputs": [],
753
+ "name": "isConsumingScheduledOp",
754
+ "outputs": [
755
+ {
756
+ "internalType": "bytes4",
757
+ "name": "",
758
+ "type": "bytes4"
759
+ }
760
+ ],
761
+ "stateMutability": "view",
762
+ "type": "function"
763
+ },
764
+ {
765
+ "inputs": [],
766
+ "name": "linkToRegisteredNftId",
767
+ "outputs": [],
768
+ "stateMutability": "nonpayable",
769
+ "type": "function"
770
+ },
771
+ {
772
+ "inputs": [
773
+ {
774
+ "internalType": "contract IInstance",
775
+ "name": "instance",
776
+ "type": "address"
777
+ },
778
+ {
779
+ "internalType": "contract InstanceReader",
780
+ "name": "instanceReader",
781
+ "type": "address"
782
+ },
783
+ {
784
+ "internalType": "NftId",
785
+ "name": "policyNftId",
786
+ "type": "uint96"
787
+ },
788
+ {
789
+ "internalType": "PayoutId",
790
+ "name": "payoutId",
791
+ "type": "uint24"
792
+ }
793
+ ],
794
+ "name": "processPayout",
795
+ "outputs": [
796
+ {
797
+ "internalType": "Amount",
798
+ "name": "amount",
799
+ "type": "uint96"
800
+ },
801
+ {
802
+ "internalType": "bool",
803
+ "name": "payoutIsClosingClaim",
804
+ "type": "bool"
805
+ }
806
+ ],
807
+ "stateMutability": "nonpayable",
808
+ "type": "function"
809
+ },
810
+ {
811
+ "inputs": [
812
+ {
813
+ "internalType": "bytes4",
814
+ "name": "interfaceId",
815
+ "type": "bytes4"
816
+ }
817
+ ],
818
+ "name": "registerInterface",
819
+ "outputs": [],
820
+ "stateMutability": "nonpayable",
821
+ "type": "function"
822
+ },
823
+ {
824
+ "inputs": [
825
+ {
826
+ "internalType": "address",
827
+ "name": "newAuthority",
828
+ "type": "address"
829
+ }
830
+ ],
831
+ "name": "setAuthority",
832
+ "outputs": [],
833
+ "stateMutability": "nonpayable",
834
+ "type": "function"
835
+ },
836
+ {
837
+ "inputs": [
838
+ {
839
+ "internalType": "contract IInstance",
840
+ "name": "instance",
841
+ "type": "address"
842
+ },
843
+ {
844
+ "internalType": "NftId",
845
+ "name": "policyNftId",
846
+ "type": "uint96"
847
+ },
848
+ {
849
+ "internalType": "ClaimId",
850
+ "name": "claimId",
851
+ "type": "uint16"
852
+ },
853
+ {
854
+ "internalType": "Amount",
855
+ "name": "claimAmount",
856
+ "type": "uint96"
857
+ },
858
+ {
859
+ "internalType": "bytes",
860
+ "name": "claimData",
861
+ "type": "bytes"
862
+ }
863
+ ],
864
+ "name": "submit",
865
+ "outputs": [],
866
+ "stateMutability": "nonpayable",
867
+ "type": "function"
868
+ },
869
+ {
870
+ "inputs": [
871
+ {
872
+ "internalType": "bytes4",
873
+ "name": "interfaceId",
874
+ "type": "bytes4"
875
+ }
876
+ ],
877
+ "name": "supportsInterface",
878
+ "outputs": [
879
+ {
880
+ "internalType": "bool",
881
+ "name": "",
882
+ "type": "bool"
883
+ }
884
+ ],
885
+ "stateMutability": "view",
886
+ "type": "function"
887
+ },
888
+ {
889
+ "inputs": [
890
+ {
891
+ "internalType": "bytes",
892
+ "name": "data",
893
+ "type": "bytes"
894
+ }
895
+ ],
896
+ "name": "upgradeVersionable",
897
+ "outputs": [],
898
+ "stateMutability": "nonpayable",
899
+ "type": "function"
900
+ }
901
+ ],
902
+ "bytecode": "0x60806040523480156200001157600080fd5b506200001c62000022565b620000d6565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000735760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620000d35780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b612c3f80620000e66000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c8063893d20e811610104578063bb31b294116100a2578063cc9fc59a11610071578063cc9fc59a14610463578063f21de1e81461031e578063f7c34ee01461046b578063fe7631d51461047e57600080fd5b8063bb31b29414610417578063bf7e214f1461042a578063c898bbaf14610448578063caf4e3d41461045b57600080fd5b8063a0e4494d116100de578063a0e4494d146103cd578063ada9652e146103e0578063b68d1809146103f5578063b962574f1461040457600080fd5b8063893d20e8146103915780638e32e979146103995780638fb36037146103ac57600080fd5b806327bb7a331161017c5780635ab1bd531161014b5780635ab1bd531461031e578063644c45e014610343578063675393bf1461036b5780637a9e5e4b1461037e57600080fd5b806327bb7a33146102dd578063329d6e74146102f057806336fc697e1461030357806349bb9e4b1461030b57600080fd5b80630fec111c116101b85780630fec111c14610276578063138461e01461028b5780631eff4b2214610295578063214cdb80146102ca57600080fd5b806301ffc9a7146101df5780630c02e8ad146102215780630d8e6e2c1461025a575b600080fd5b61020c6101ed36600461202b565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61023b61022f366004612097565b60008094509492505050565b604080516001600160601b039093168352901515602083015201610218565b610262610491565b60405162ffffff9091168152602001610218565b61027e61051b565b6040516102189190612143565b6102936106ca565b005b6102bc7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610218565b6102936102d836600461202b565b6108d1565b6102936102eb3660046122d6565b6108fe565b6102936102fe36600461236e565b61098a565b610293610ad7565b6102936103193660046123a2565b610b1d565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610218565b600080516020612baa833981519152546040516001600160601b039091168152602001610218565b6102936103793660046123f1565b610c1c565b61029361038c3660046123f1565b610d2a565b61032b610dc4565b6102936103a736600461240e565b610efb565b6103b4611134565b6040516001600160e01b03199091168152602001610218565b6102936103db366004612469565b61116c565b6102bc600080516020612baa83398151915281565b60405160d48152602001610218565b6102936104123660046124ba565b611462565b610293610425366004612469565b611556565b600080516020612bca833981519152546001600160a01b031661032b565b61029361045636600461252b565b611661565b61032b611817565b61032b611823565b6102936104793660046125b2565b61182f565b61029361048c3660046125eb565b6118a6565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156104f2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051691906126a6565b905090565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820152907f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa3006040805160808101825282546001600160601b038116825260ff600160601b820481166020840152600160681b909104161515918101919091526001820180549192916060840191906105c6906126c3565b80601f01602080910402602001604051908101604052809291908181526020018280546105f2906126c3565b801561063f5780601f106106145761010080835404028352916020019161063f565b820191906000526020600020905b81548152906001019060200180831161062257829003601f168201915b50505050508152505090506040518060e0016040528061065d600090565b6001600160601b0316815260200182600001516001600160601b03168152602001826020015160ff168152602001826040015115158152602001306001600160a01b031681526020016106ae610dc4565b6001600160a01b03168152602001826060015181525091505090565b6000600080516020612baa83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610739573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075d91906126fd565b1561078e5780546040516301ab8b6760e21b81526001600160601b0390911660048201526024015b60405180910390fd5b306107a16001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa1580156107e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080d91906126fd565b6108355760405163b9304b0d60e01b81526001600160a01b0382166004820152602401610785565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa158015610889573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ad919061271a565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b6108d9611a90565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610906611a90565b610910828761182f565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b861515021781559050600181016109808382612785565b5050505050505050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c6109ac610491565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af41580156109ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a109190612844565b600080516020612bea8339815191528054600160401b900460ff1680610a43575080546001600160401b03808416911610155b15610a615760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610a8b83611ac9565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050565b610adf611a90565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b600080516020612bea8339815191528054600160401b810460ff1615906001600160401b0316600081158015610b505750825b90506000826001600160401b03166001148015610b6c5750303b155b905081158015610b7a575080155b15610b985760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bc257845460ff60401b1916600160401b1785555b610bcc8787611ad1565b8315610c1357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15b50505050505050565b610c24611a90565b806001600160a01b03163b600003610c5a5760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610785565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152630a3888e560e31b60048201526301ffc9a790602401602060405180830381865afa925050508015610cd4575060408051601f3d908101601f19168201909252610cd1918101906126fd565b60015b610cfc5760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610785565b80610d255760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610785565b505b50565b33610d4a600080516020612bca833981519152546001600160a01b031690565b6001600160a01b0316816001600160a01b031614610d855760405162d1953b60e31b81526001600160a01b0382166004820152602401610785565b816001600160a01b03163b600003610dbb576040516361798f2f60e11b81526001600160a01b0383166004820152602401610785565b610d2582611d0f565b600080600080516020612baa83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610e34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5891906126fd565b15610ee5576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015610ebb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610edf919061286d565b91505090565b54600160601b90046001600160a01b0316919050565b610f03611a90565b610f8383846001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f69919061271a565b603c600085604051806020016040528060008152506108fe565b6001600160a01b03821615610fa057610f9b82611d70565b61110f565b6000610fb46001546001600160a01b031690565b6001600160a01b031663d39e60436028604051632392b61b60e21b81526003600482015273__$9dab98ad7ae1a426029e5739f922230a41$__90638e4ad86c90602401602060405180830381865af4158015611014573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611038919061289a565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa15801561107d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a1919061286d565b905061110d816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611108919061286d565b611d70565b505b61111f634a531f3360e01b6108d1565b61112f63b68d180960e01b6108d1565b505050565b600080516020612bca833981519152805460009190600160a01b900460ff1661115e576000610edf565b638fb3603760e01b91505090565b600061117b8484846033611d81565b606081015190915060ff16156111c8576060810151604051632f1a047f60e11b81526001600160601b038516600482015261ffff8416602482015260ff9091166044820152606401610785565b805160405163046e44af60e11b81526001600160601b03909116600482015273__$ea4dcf94bcd4a5d2e83a2341ef616bff8d$__906308dc895e90602401602060405180830381865af4158015611223573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124791906128b7565b602082015160405163046e44af60e11b81526001600160601b03909116600482015273__$ea4dcf94bcd4a5d2e83a2341ef616bff8d$__906308dc895e90602401602060405180830381865af41580156112a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c991906128b7565b10156113145780516020820151604051633c781b2760e11b81526001600160601b03808716600483015261ffff86166024830152928316604482015291166064820152608401610785565b73__$d53880c81dc91c20799140d711e5ab8718$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af415801561135d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138191906128e5565b64ffffffffff1660a082015260408051631a99b41b60e31b815290516001600160a01b0387169163d4cda0d89160048083019260209291908290030181865afa1580156113d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f6919061286d565b6001600160a01b03166329e63f6284848460c85b6040518563ffffffff1660e01b8152600401611429949392919061296b565b600060405180830381600087803b15801561144357600080fd5b505af1158015611457573d6000803e3d6000fd5b505050505050505050565b60006114718585856032611d81565b6001600160601b038316815260408051631a99b41b60e31b815290519192506001600160a01b0388169163d4cda0d8916004808201926020929091908290030181865afa1580156114c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ea919061286d565b6001600160a01b03166329e63f6285858460336040518563ffffffff1660e01b815260040161151c949392919061296b565b600060405180830381600087803b15801561153657600080fd5b505af115801561154a573d6000803e3d6000fd5b50505050505050505050565b60006115658484846032611d81565b905073__$d53880c81dc91c20799140d711e5ab8718$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af41580156115b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d491906128e5565b64ffffffffff1660a082015260408051631a99b41b60e31b815290516001600160a01b0387169163d4cda0d89160048083019260209291908290030181865afa158015611625573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611649919061286d565b6001600160a01b03166329e63f62848484601e61140a565b846001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561169f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c3919061286d565b6001600160a01b031663a1ef60e985856040518060c00160405280876001600160601b0316815260200173__$ea4dcf94bcd4a5d2e83a2341ef616bff8d$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af4158015611736573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175a919061271a565b6001600160601b03168152602001600060ff168152602001600060ff16815260200186815260200173__$d53880c81dc91c20799140d711e5ab8718$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af41580156117cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ef91906128e5565b64ffffffffff168152506040518463ffffffff1660e01b8152600401611429939291906129ab565b60006105166028611f07565b60006105166046611f07565b611837611a90565b61184081610c1c565b611848610ad7565b6001600160a01b03821661186f5760405163f17ef42d60e01b815260040160405180910390fd5b50600080516020612baa83398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b856001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611908919061286d565b604080516080810191829052636f2f88d160e11b90915262ffffff861660848201526001600160a01b0391909116906381c2b28290879087908073__$e1d43d4fb5c0494c5b7331f52c1ee41012$__63de5f11a260a48301602060405180830381865af415801561197d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119a191906129e0565b61ffff168152602001886001600160601b0316815260200187878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050908252506040805163bc1b392d60e01b8152905160209283019273__$d53880c81dc91c20799140d711e5ab8718$__9263bc1b392d92600480830193928290030181865af4158015611a44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a6891906128e5565b64ffffffffff168152506040518463ffffffff1660e01b815260040161151c939291906129fd565b600080516020612bea83398151915254600160401b900460ff16611ac757604051631afcd79f60e31b815260040160405180910390fd5b565b6101da611a90565b600080516020612bea8339815191528054600160401b810460ff1615906001600160401b0316600081158015611b045750825b90506000826001600160401b03166001148015611b205750303b155b905081158015611b2e575080155b15611b4c5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315611b7657845460ff60401b1916600160401b1785555b60008087806020019051810190611b8d9190612a6e565b9092509050611b9e8260008b610efb565b6001546001600160a01b031663d39e6043608c611bb9610491565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af4158015611c0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c32919061289a565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611c77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c9b919061286d565b600280546001600160a01b0319166001600160a01b0392909216919091179055611ccb63985bce4160e01b6108d1565b50508315610c1357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602001610c0a565b600080516020612bca83398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b611d78611a90565b610d278161201a565b6040805160c0810182526000808252602082018190529181018290526060808201839052608082015260a081019190915260405163078ae93560e41b81526001600160601b038516600482015261ffff841660248201526000906001600160a01b038716906378ae935090604401602060405180830381865afa158015611e0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e30919061289a565b905060ff80821690841614611e7e576040516398b9e22f60e01b81526001600160601b038616600482015261ffff8516602482015260ff808516604483015282166064820152608401610785565b60405163a7ef3d2160e01b81526001600160601b038616600482015261ffff851660248201526001600160a01b0387169063a7ef3d2190604401600060405180830381865afa158015611ed5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611efd9190810190612ae2565b9695505050505050565b6000611f1b6001546001600160a01b031690565b6001600160a01b031663d39e604383611f32610491565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af4158015611f87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fab919061289a565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611ff0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612014919061286d565b92915050565b612022611a90565b610d2781611d0f565b60006020828403121561203d57600080fd5b81356001600160e01b03198116811461205557600080fd5b9392505050565b6001600160a01b0381168114610d2757600080fd5b6001600160601b0381168114610d2757600080fd5b62ffffff81168114610d2757600080fd5b600080600080608085870312156120ad57600080fd5b84356120b88161205c565b935060208501356120c88161205c565b925060408501356120d881612071565b915060608501356120e881612086565b939692955090935050565b60005b8381101561210e5781810151838201526020016120f6565b50506000910152565b6000815180845261212f8160208601602086016120f3565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a08301516121ac60c08401826001600160a01b03169052565b5060c083015160e0808401526121c6610100840182612117565b949350505050565b60ff81168114610d2757600080fd5b8015158114610d2757600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b0381118282101715612223576122236121eb565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612251576122516121eb565b604052919050565b60006001600160401b03821115612272576122726121eb565b50601f01601f191660200190565b600082601f83011261229157600080fd5b81356122a461229f82612259565b612229565b8181528460208386010111156122b957600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060008060c087890312156122ef57600080fd5b86356122fa8161205c565b9550602087013561230a81612071565b9450604087013561231a816121ce565b9350606087013561232a816121dd565b9250608087013561233a8161205c565b915060a08701356001600160401b0381111561235557600080fd5b61236189828a01612280565b9150509295509295509295565b60006020828403121561238057600080fd5b81356001600160401b0381111561239657600080fd5b6121c684828501612280565b600080604083850312156123b557600080fd5b82356123c08161205c565b915060208301356001600160401b038111156123db57600080fd5b6123e785828601612280565b9150509250929050565b60006020828403121561240357600080fd5b81356120558161205c565b60008060006060848603121561242357600080fd5b833561242e8161205c565b9250602084013561243e8161205c565b9150604084013561244e8161205c565b809150509250925092565b61ffff81168114610d2757600080fd5b6000806000806080858703121561247f57600080fd5b843561248a8161205c565b9350602085013561249a8161205c565b925060408501356124aa81612071565b915060608501356120e881612459565b600080600080600060a086880312156124d257600080fd5b85356124dd8161205c565b945060208601356124ed8161205c565b935060408601356124fd81612071565b9250606086013561250d81612459565b9150608086013561251d81612071565b809150509295509295909350565b600080600080600060a0868803121561254357600080fd5b853561254e8161205c565b9450602086013561255e81612071565b9350604086013561256e81612459565b9250606086013561257e81612071565b915060808601356001600160401b0381111561259957600080fd5b6125a588828901612280565b9150509295509295909350565b600080604083850312156125c557600080fd5b82356125d08161205c565b915060208301356125e08161205c565b809150509250929050565b60008060008060008060a0878903121561260457600080fd5b863561260f8161205c565b9550602087013561261f81612071565b9450604087013561262f81612086565b9350606087013561263f81612071565b925060808701356001600160401b038082111561265b57600080fd5b818901915089601f83011261266f57600080fd5b81358181111561267e57600080fd5b8a602082850101111561269057600080fd5b6020830194508093505050509295509295509295565b6000602082840312156126b857600080fd5b815161205581612086565b600181811c908216806126d757607f821691505b6020821081036126f757634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561270f57600080fd5b8151612055816121dd565b60006020828403121561272c57600080fd5b815161205581612071565b601f82111561112f57600081815260208120601f850160051c8101602086101561275e5750805b601f850160051c820191505b8181101561277d5782815560010161276a565b505050505050565b81516001600160401b0381111561279e5761279e6121eb565b6127b2816127ac84546126c3565b84612737565b602080601f8311600181146127e757600084156127cf5750858301515b600019600386901b1c1916600185901b17855561277d565b600085815260208120601f198616915b82811015612816578886015182559484019460019091019084016127f7565b50858210156128345787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121561285657600080fd5b81516001600160401b038116811461205557600080fd5b60006020828403121561287f57600080fd5b81516120558161205c565b8051612895816121ce565b919050565b6000602082840312156128ac57600080fd5b8151612055816121ce565b6000602082840312156128c957600080fd5b5051919050565b805164ffffffffff8116811461289557600080fd5b6000602082840312156128f757600080fd5b612055826128d0565b60006001600160601b038083511684528060208401511660208501525060ff604083015116604084015260ff6060830151166060840152608082015160c0608085015261295060c0850182612117565b60a09384015164ffffffffff16949093019390935250919050565b6001600160601b038516815261ffff841660208201526080604082015260006129976080830185612900565b905060ff8316606083015295945050505050565b6001600160601b038416815261ffff831660208201526060604082015260006129d76060830184612900565b95945050505050565b6000602082840312156129f257600080fd5b815161205581612459565b60006001600160601b03808616835262ffffff851660208401526060604084015261ffff8451166060840152806020850151166080840152506040830151608060a0840152612a4f60e0840182612117565b905064ffffffffff60608501511660c084015280915050949350505050565b60008060408385031215612a8157600080fd5b8251612a8c8161205c565b60208401519092506125e08161205c565b600082601f830112612aae57600080fd5b8151612abc61229f82612259565b818152846020838601011115612ad157600080fd5b6121c68260208301602087016120f3565b600060208284031215612af457600080fd5b81516001600160401b0380821115612b0b57600080fd5b9083019060c08286031215612b1f57600080fd5b612b27612201565b8251612b3281612071565b81526020830151612b4281612071565b60208201526040830151612b55816121ce565b6040820152612b666060840161288a565b6060820152608083015182811115612b7d57600080fd5b612b8987828601612a9d565b608083015250612b9b60a084016128d0565b60a08201529594505050505056fe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a264697066735822122075e7f7c4f61e56f96503a87e7fd3ef0b7442cf644e071cd539b2dac2e64d4c7964736f6c63430008140033",
903
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101da5760003560e01c8063893d20e811610104578063bb31b294116100a2578063cc9fc59a11610071578063cc9fc59a14610463578063f21de1e81461031e578063f7c34ee01461046b578063fe7631d51461047e57600080fd5b8063bb31b29414610417578063bf7e214f1461042a578063c898bbaf14610448578063caf4e3d41461045b57600080fd5b8063a0e4494d116100de578063a0e4494d146103cd578063ada9652e146103e0578063b68d1809146103f5578063b962574f1461040457600080fd5b8063893d20e8146103915780638e32e979146103995780638fb36037146103ac57600080fd5b806327bb7a331161017c5780635ab1bd531161014b5780635ab1bd531461031e578063644c45e014610343578063675393bf1461036b5780637a9e5e4b1461037e57600080fd5b806327bb7a33146102dd578063329d6e74146102f057806336fc697e1461030357806349bb9e4b1461030b57600080fd5b80630fec111c116101b85780630fec111c14610276578063138461e01461028b5780631eff4b2214610295578063214cdb80146102ca57600080fd5b806301ffc9a7146101df5780630c02e8ad146102215780630d8e6e2c1461025a575b600080fd5b61020c6101ed36600461202b565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61023b61022f366004612097565b60008094509492505050565b604080516001600160601b039093168352901515602083015201610218565b610262610491565b60405162ffffff9091168152602001610218565b61027e61051b565b6040516102189190612143565b6102936106ca565b005b6102bc7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610218565b6102936102d836600461202b565b6108d1565b6102936102eb3660046122d6565b6108fe565b6102936102fe36600461236e565b61098a565b610293610ad7565b6102936103193660046123a2565b610b1d565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610218565b600080516020612baa833981519152546040516001600160601b039091168152602001610218565b6102936103793660046123f1565b610c1c565b61029361038c3660046123f1565b610d2a565b61032b610dc4565b6102936103a736600461240e565b610efb565b6103b4611134565b6040516001600160e01b03199091168152602001610218565b6102936103db366004612469565b61116c565b6102bc600080516020612baa83398151915281565b60405160d48152602001610218565b6102936104123660046124ba565b611462565b610293610425366004612469565b611556565b600080516020612bca833981519152546001600160a01b031661032b565b61029361045636600461252b565b611661565b61032b611817565b61032b611823565b6102936104793660046125b2565b61182f565b61029361048c3660046125eb565b6118a6565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156104f2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051691906126a6565b905090565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820152907f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa3006040805160808101825282546001600160601b038116825260ff600160601b820481166020840152600160681b909104161515918101919091526001820180549192916060840191906105c6906126c3565b80601f01602080910402602001604051908101604052809291908181526020018280546105f2906126c3565b801561063f5780601f106106145761010080835404028352916020019161063f565b820191906000526020600020905b81548152906001019060200180831161062257829003601f168201915b50505050508152505090506040518060e0016040528061065d600090565b6001600160601b0316815260200182600001516001600160601b03168152602001826020015160ff168152602001826040015115158152602001306001600160a01b031681526020016106ae610dc4565b6001600160a01b03168152602001826060015181525091505090565b6000600080516020612baa83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610739573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075d91906126fd565b1561078e5780546040516301ab8b6760e21b81526001600160601b0390911660048201526024015b60405180910390fd5b306107a16001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa1580156107e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080d91906126fd565b6108355760405163b9304b0d60e01b81526001600160a01b0382166004820152602401610785565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa158015610889573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ad919061271a565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b6108d9611a90565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610906611a90565b610910828761182f565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b861515021781559050600181016109808382612785565b5050505050505050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c6109ac610491565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af41580156109ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a109190612844565b600080516020612bea8339815191528054600160401b900460ff1680610a43575080546001600160401b03808416911610155b15610a615760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610a8b83611ac9565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050565b610adf611a90565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b600080516020612bea8339815191528054600160401b810460ff1615906001600160401b0316600081158015610b505750825b90506000826001600160401b03166001148015610b6c5750303b155b905081158015610b7a575080155b15610b985760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bc257845460ff60401b1916600160401b1785555b610bcc8787611ad1565b8315610c1357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15b50505050505050565b610c24611a90565b806001600160a01b03163b600003610c5a5760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610785565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152630a3888e560e31b60048201526301ffc9a790602401602060405180830381865afa925050508015610cd4575060408051601f3d908101601f19168201909252610cd1918101906126fd565b60015b610cfc5760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610785565b80610d255760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610785565b505b50565b33610d4a600080516020612bca833981519152546001600160a01b031690565b6001600160a01b0316816001600160a01b031614610d855760405162d1953b60e31b81526001600160a01b0382166004820152602401610785565b816001600160a01b03163b600003610dbb576040516361798f2f60e11b81526001600160a01b0383166004820152602401610785565b610d2582611d0f565b600080600080516020612baa83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610e34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5891906126fd565b15610ee5576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015610ebb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610edf919061286d565b91505090565b54600160601b90046001600160a01b0316919050565b610f03611a90565b610f8383846001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f69919061271a565b603c600085604051806020016040528060008152506108fe565b6001600160a01b03821615610fa057610f9b82611d70565b61110f565b6000610fb46001546001600160a01b031690565b6001600160a01b031663d39e60436028604051632392b61b60e21b81526003600482015273__$9dab98ad7ae1a426029e5739f922230a41$__90638e4ad86c90602401602060405180830381865af4158015611014573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611038919061289a565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa15801561107d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a1919061286d565b905061110d816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611108919061286d565b611d70565b505b61111f634a531f3360e01b6108d1565b61112f63b68d180960e01b6108d1565b505050565b600080516020612bca833981519152805460009190600160a01b900460ff1661115e576000610edf565b638fb3603760e01b91505090565b600061117b8484846033611d81565b606081015190915060ff16156111c8576060810151604051632f1a047f60e11b81526001600160601b038516600482015261ffff8416602482015260ff9091166044820152606401610785565b805160405163046e44af60e11b81526001600160601b03909116600482015273__$ea4dcf94bcd4a5d2e83a2341ef616bff8d$__906308dc895e90602401602060405180830381865af4158015611223573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124791906128b7565b602082015160405163046e44af60e11b81526001600160601b03909116600482015273__$ea4dcf94bcd4a5d2e83a2341ef616bff8d$__906308dc895e90602401602060405180830381865af41580156112a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c991906128b7565b10156113145780516020820151604051633c781b2760e11b81526001600160601b03808716600483015261ffff86166024830152928316604482015291166064820152608401610785565b73__$d53880c81dc91c20799140d711e5ab8718$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af415801561135d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138191906128e5565b64ffffffffff1660a082015260408051631a99b41b60e31b815290516001600160a01b0387169163d4cda0d89160048083019260209291908290030181865afa1580156113d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f6919061286d565b6001600160a01b03166329e63f6284848460c85b6040518563ffffffff1660e01b8152600401611429949392919061296b565b600060405180830381600087803b15801561144357600080fd5b505af1158015611457573d6000803e3d6000fd5b505050505050505050565b60006114718585856032611d81565b6001600160601b038316815260408051631a99b41b60e31b815290519192506001600160a01b0388169163d4cda0d8916004808201926020929091908290030181865afa1580156114c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ea919061286d565b6001600160a01b03166329e63f6285858460336040518563ffffffff1660e01b815260040161151c949392919061296b565b600060405180830381600087803b15801561153657600080fd5b505af115801561154a573d6000803e3d6000fd5b50505050505050505050565b60006115658484846032611d81565b905073__$d53880c81dc91c20799140d711e5ab8718$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af41580156115b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d491906128e5565b64ffffffffff1660a082015260408051631a99b41b60e31b815290516001600160a01b0387169163d4cda0d89160048083019260209291908290030181865afa158015611625573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611649919061286d565b6001600160a01b03166329e63f62848484601e61140a565b846001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561169f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c3919061286d565b6001600160a01b031663a1ef60e985856040518060c00160405280876001600160601b0316815260200173__$ea4dcf94bcd4a5d2e83a2341ef616bff8d$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af4158015611736573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175a919061271a565b6001600160601b03168152602001600060ff168152602001600060ff16815260200186815260200173__$d53880c81dc91c20799140d711e5ab8718$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af41580156117cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ef91906128e5565b64ffffffffff168152506040518463ffffffff1660e01b8152600401611429939291906129ab565b60006105166028611f07565b60006105166046611f07565b611837611a90565b61184081610c1c565b611848610ad7565b6001600160a01b03821661186f5760405163f17ef42d60e01b815260040160405180910390fd5b50600080516020612baa83398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b856001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611908919061286d565b604080516080810191829052636f2f88d160e11b90915262ffffff861660848201526001600160a01b0391909116906381c2b28290879087908073__$e1d43d4fb5c0494c5b7331f52c1ee41012$__63de5f11a260a48301602060405180830381865af415801561197d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119a191906129e0565b61ffff168152602001886001600160601b0316815260200187878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050908252506040805163bc1b392d60e01b8152905160209283019273__$d53880c81dc91c20799140d711e5ab8718$__9263bc1b392d92600480830193928290030181865af4158015611a44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a6891906128e5565b64ffffffffff168152506040518463ffffffff1660e01b815260040161151c939291906129fd565b600080516020612bea83398151915254600160401b900460ff16611ac757604051631afcd79f60e31b815260040160405180910390fd5b565b6101da611a90565b600080516020612bea8339815191528054600160401b810460ff1615906001600160401b0316600081158015611b045750825b90506000826001600160401b03166001148015611b205750303b155b905081158015611b2e575080155b15611b4c5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315611b7657845460ff60401b1916600160401b1785555b60008087806020019051810190611b8d9190612a6e565b9092509050611b9e8260008b610efb565b6001546001600160a01b031663d39e6043608c611bb9610491565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af4158015611c0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c32919061289a565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611c77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c9b919061286d565b600280546001600160a01b0319166001600160a01b0392909216919091179055611ccb63985bce4160e01b6108d1565b50508315610c1357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602001610c0a565b600080516020612bca83398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b611d78611a90565b610d278161201a565b6040805160c0810182526000808252602082018190529181018290526060808201839052608082015260a081019190915260405163078ae93560e41b81526001600160601b038516600482015261ffff841660248201526000906001600160a01b038716906378ae935090604401602060405180830381865afa158015611e0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e30919061289a565b905060ff80821690841614611e7e576040516398b9e22f60e01b81526001600160601b038616600482015261ffff8516602482015260ff808516604483015282166064820152608401610785565b60405163a7ef3d2160e01b81526001600160601b038616600482015261ffff851660248201526001600160a01b0387169063a7ef3d2190604401600060405180830381865afa158015611ed5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611efd9190810190612ae2565b9695505050505050565b6000611f1b6001546001600160a01b031690565b6001600160a01b031663d39e604383611f32610491565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af4158015611f87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fab919061289a565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611ff0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612014919061286d565b92915050565b612022611a90565b610d2781611d0f565b60006020828403121561203d57600080fd5b81356001600160e01b03198116811461205557600080fd5b9392505050565b6001600160a01b0381168114610d2757600080fd5b6001600160601b0381168114610d2757600080fd5b62ffffff81168114610d2757600080fd5b600080600080608085870312156120ad57600080fd5b84356120b88161205c565b935060208501356120c88161205c565b925060408501356120d881612071565b915060608501356120e881612086565b939692955090935050565b60005b8381101561210e5781810151838201526020016120f6565b50506000910152565b6000815180845261212f8160208601602086016120f3565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a08301516121ac60c08401826001600160a01b03169052565b5060c083015160e0808401526121c6610100840182612117565b949350505050565b60ff81168114610d2757600080fd5b8015158114610d2757600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b0381118282101715612223576122236121eb565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612251576122516121eb565b604052919050565b60006001600160401b03821115612272576122726121eb565b50601f01601f191660200190565b600082601f83011261229157600080fd5b81356122a461229f82612259565b612229565b8181528460208386010111156122b957600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060008060c087890312156122ef57600080fd5b86356122fa8161205c565b9550602087013561230a81612071565b9450604087013561231a816121ce565b9350606087013561232a816121dd565b9250608087013561233a8161205c565b915060a08701356001600160401b0381111561235557600080fd5b61236189828a01612280565b9150509295509295509295565b60006020828403121561238057600080fd5b81356001600160401b0381111561239657600080fd5b6121c684828501612280565b600080604083850312156123b557600080fd5b82356123c08161205c565b915060208301356001600160401b038111156123db57600080fd5b6123e785828601612280565b9150509250929050565b60006020828403121561240357600080fd5b81356120558161205c565b60008060006060848603121561242357600080fd5b833561242e8161205c565b9250602084013561243e8161205c565b9150604084013561244e8161205c565b809150509250925092565b61ffff81168114610d2757600080fd5b6000806000806080858703121561247f57600080fd5b843561248a8161205c565b9350602085013561249a8161205c565b925060408501356124aa81612071565b915060608501356120e881612459565b600080600080600060a086880312156124d257600080fd5b85356124dd8161205c565b945060208601356124ed8161205c565b935060408601356124fd81612071565b9250606086013561250d81612459565b9150608086013561251d81612071565b809150509295509295909350565b600080600080600060a0868803121561254357600080fd5b853561254e8161205c565b9450602086013561255e81612071565b9350604086013561256e81612459565b9250606086013561257e81612071565b915060808601356001600160401b0381111561259957600080fd5b6125a588828901612280565b9150509295509295909350565b600080604083850312156125c557600080fd5b82356125d08161205c565b915060208301356125e08161205c565b809150509250929050565b60008060008060008060a0878903121561260457600080fd5b863561260f8161205c565b9550602087013561261f81612071565b9450604087013561262f81612086565b9350606087013561263f81612071565b925060808701356001600160401b038082111561265b57600080fd5b818901915089601f83011261266f57600080fd5b81358181111561267e57600080fd5b8a602082850101111561269057600080fd5b6020830194508093505050509295509295509295565b6000602082840312156126b857600080fd5b815161205581612086565b600181811c908216806126d757607f821691505b6020821081036126f757634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561270f57600080fd5b8151612055816121dd565b60006020828403121561272c57600080fd5b815161205581612071565b601f82111561112f57600081815260208120601f850160051c8101602086101561275e5750805b601f850160051c820191505b8181101561277d5782815560010161276a565b505050505050565b81516001600160401b0381111561279e5761279e6121eb565b6127b2816127ac84546126c3565b84612737565b602080601f8311600181146127e757600084156127cf5750858301515b600019600386901b1c1916600185901b17855561277d565b600085815260208120601f198616915b82811015612816578886015182559484019460019091019084016127f7565b50858210156128345787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121561285657600080fd5b81516001600160401b038116811461205557600080fd5b60006020828403121561287f57600080fd5b81516120558161205c565b8051612895816121ce565b919050565b6000602082840312156128ac57600080fd5b8151612055816121ce565b6000602082840312156128c957600080fd5b5051919050565b805164ffffffffff8116811461289557600080fd5b6000602082840312156128f757600080fd5b612055826128d0565b60006001600160601b038083511684528060208401511660208501525060ff604083015116604084015260ff6060830151166060840152608082015160c0608085015261295060c0850182612117565b60a09384015164ffffffffff16949093019390935250919050565b6001600160601b038516815261ffff841660208201526080604082015260006129976080830185612900565b905060ff8316606083015295945050505050565b6001600160601b038416815261ffff831660208201526060604082015260006129d76060830184612900565b95945050505050565b6000602082840312156129f257600080fd5b815161205581612459565b60006001600160601b03808616835262ffffff851660208401526060604084015261ffff8451166060840152806020850151166080840152506040830151608060a0840152612a4f60e0840182612117565b905064ffffffffff60608501511660c084015280915050949350505050565b60008060408385031215612a8157600080fd5b8251612a8c8161205c565b60208401519092506125e08161205c565b600082601f830112612aae57600080fd5b8151612abc61229f82612259565b818152846020838601011115612ad157600080fd5b6121c68260208301602087016120f3565b600060208284031215612af457600080fd5b81516001600160401b0380821115612b0b57600080fd5b9083019060c08286031215612b1f57600080fd5b612b27612201565b8251612b3281612071565b81526020830151612b4281612071565b60208201526040830151612b55816121ce565b6040820152612b666060840161288a565b6060820152608083015182811115612b7d57600080fd5b612b8987828601612a9d565b608083015250612b9b60a084016128d0565b60a08201529594505050505056fe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a264697066735822122075e7f7c4f61e56f96503a87e7fd3ef0b7442cf644e071cd539b2dac2e64d4c7964736f6c63430008140033",
904
+ "linkReferences": {
905
+ "contracts/types/Amount.sol": {
906
+ "AmountLib": [
907
+ {
908
+ "length": 20,
909
+ "start": 4815
910
+ },
911
+ {
912
+ "length": 20,
913
+ "start": 4945
914
+ },
915
+ {
916
+ "length": 20,
917
+ "start": 6101
918
+ }
919
+ ]
920
+ },
921
+ "contracts/types/NftId.sol": {
922
+ "NftIdLib": [
923
+ {
924
+ "length": 20,
925
+ "start": 2021
926
+ },
927
+ {
928
+ "length": 20,
929
+ "start": 3808
930
+ }
931
+ ]
932
+ },
933
+ "contracts/types/PayoutId.sol": {
934
+ "PayoutIdLib": [
935
+ {
936
+ "length": 20,
937
+ "start": 6698
938
+ }
939
+ ]
940
+ },
941
+ "contracts/types/Timestamp.sol": {
942
+ "TimestampLib": [
943
+ {
944
+ "length": 20,
945
+ "start": 5116
946
+ },
947
+ {
948
+ "length": 20,
949
+ "start": 5711
950
+ },
951
+ {
952
+ "length": 20,
953
+ "start": 6250
954
+ },
955
+ {
956
+ "length": 20,
957
+ "start": 6896
958
+ }
959
+ ]
960
+ },
961
+ "contracts/types/Version.sol": {
962
+ "VersionLib": [
963
+ {
964
+ "length": 20,
965
+ "start": 1438
966
+ },
967
+ {
968
+ "length": 20,
969
+ "start": 2674
970
+ },
971
+ {
972
+ "length": 20,
973
+ "start": 7354
974
+ },
975
+ {
976
+ "length": 20,
977
+ "start": 8243
978
+ }
979
+ ],
980
+ "VersionPartLib": [
981
+ {
982
+ "length": 20,
983
+ "start": 4288
984
+ }
985
+ ]
986
+ }
987
+ },
988
+ "deployedLinkReferences": {
989
+ "contracts/types/Amount.sol": {
990
+ "AmountLib": [
991
+ {
992
+ "length": 20,
993
+ "start": 4585
994
+ },
995
+ {
996
+ "length": 20,
997
+ "start": 4715
998
+ },
999
+ {
1000
+ "length": 20,
1001
+ "start": 5871
1002
+ }
1003
+ ]
1004
+ },
1005
+ "contracts/types/NftId.sol": {
1006
+ "NftIdLib": [
1007
+ {
1008
+ "length": 20,
1009
+ "start": 1791
1010
+ },
1011
+ {
1012
+ "length": 20,
1013
+ "start": 3578
1014
+ }
1015
+ ]
1016
+ },
1017
+ "contracts/types/PayoutId.sol": {
1018
+ "PayoutIdLib": [
1019
+ {
1020
+ "length": 20,
1021
+ "start": 6468
1022
+ }
1023
+ ]
1024
+ },
1025
+ "contracts/types/Timestamp.sol": {
1026
+ "TimestampLib": [
1027
+ {
1028
+ "length": 20,
1029
+ "start": 4886
1030
+ },
1031
+ {
1032
+ "length": 20,
1033
+ "start": 5481
1034
+ },
1035
+ {
1036
+ "length": 20,
1037
+ "start": 6020
1038
+ },
1039
+ {
1040
+ "length": 20,
1041
+ "start": 6666
1042
+ }
1043
+ ]
1044
+ },
1045
+ "contracts/types/Version.sol": {
1046
+ "VersionLib": [
1047
+ {
1048
+ "length": 20,
1049
+ "start": 1208
1050
+ },
1051
+ {
1052
+ "length": 20,
1053
+ "start": 2444
1054
+ },
1055
+ {
1056
+ "length": 20,
1057
+ "start": 7124
1058
+ },
1059
+ {
1060
+ "length": 20,
1061
+ "start": 8013
1062
+ }
1063
+ ],
1064
+ "VersionPartLib": [
1065
+ {
1066
+ "length": 20,
1067
+ "start": 4058
1068
+ }
1069
+ ]
1070
+ }
1071
+ }
1072
+ }