@etherisc/gif-next 0.0.2-f02157b-803 → 0.0.2-f080b71-868

Sign up to get free protection for your applications and to get access to all the features.
Files changed (398) hide show
  1. package/README.md +75 -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 +948 -229
  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 +864 -49
  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 +849 -247
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +637 -224
  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 +4 -0
  21. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +778 -0
  22. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  23. package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +91 -2
  24. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  25. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +468 -246
  26. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  27. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +389 -156
  28. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  29. package/artifacts/contracts/instance/Instance.sol/Instance.json +445 -2985
  30. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  31. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +606 -175
  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 +252 -210
  36. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  37. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +540 -179
  38. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  39. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +322 -73
  40. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
  41. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2677 -0
  42. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  43. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +256 -0
  44. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  45. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +639 -0
  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 +860 -0
  64. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  65. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +641 -0
  66. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  67. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1276 -0
  68. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  69. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +717 -0
  70. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  71. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +849 -0
  72. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  73. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +641 -0
  74. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  75. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1539 -0
  76. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  77. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +769 -0
  78. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  79. package/artifacts/contracts/instance/{base/ServiceBase.sol/ServiceBase.json → service/IApplicationService.sol/IApplicationService.json} +191 -184
  80. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  81. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +680 -0
  82. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  83. package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IClaimService.sol/IClaimService.json} +217 -208
  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 +648 -0
  88. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  89. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +437 -154
  90. package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.dbg.json +4 -0
  91. package/artifacts/contracts/instance/{base/IService.sol/IService.json → service/IPricingService.sol/IPricingService.json} +270 -173
  92. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  93. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +90 -391
  94. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  95. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1166 -0
  96. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +697 -0
  98. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  99. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +1269 -0
  100. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  101. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +661 -0
  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 +4 -0
  107. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +872 -0
  108. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  109. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +653 -0
  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 +373 -61
  114. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  115. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +223 -229
  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 +333 -188
  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 +227 -330
  124. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  125. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +304 -138
  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 +4 -0
  129. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +498 -0
  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 +4 -0
  142. package/artifacts/contracts/{components/BaseComponent.sol/BaseComponent.json → shared/IService.sol/IService.json} +98 -77
  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 +4 -0
  156. package/artifacts/contracts/{instance/base/ComponentServiceBase.sol/ComponentServiceBase.json → shared/Service.sol/Service.json} +185 -170
  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 +161 -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 +100 -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 +26 -3
  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 +100 -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 +25 -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 +22 -3
  220. package/contracts/components/Component.sol +253 -0
  221. package/contracts/components/Distribution.sol +200 -86
  222. package/contracts/components/IComponent.sol +76 -0
  223. package/contracts/components/IDistributionComponent.sol +44 -16
  224. package/contracts/components/IPoolComponent.sol +88 -37
  225. package/contracts/components/IProductComponent.sol +10 -5
  226. package/contracts/components/Pool.sol +225 -181
  227. package/contracts/components/Product.sol +136 -137
  228. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
  229. package/contracts/instance/BundleManager.sol +127 -0
  230. package/contracts/instance/Cloneable.sol +51 -0
  231. package/contracts/instance/IInstance.sol +45 -13
  232. package/contracts/instance/IInstanceService.sol +74 -7
  233. package/contracts/instance/Instance.sol +152 -361
  234. package/contracts/instance/InstanceAccessManager.sol +428 -176
  235. package/contracts/instance/InstanceAuthorizationsLib.sol +299 -0
  236. package/contracts/instance/InstanceReader.sol +49 -30
  237. package/contracts/instance/InstanceService.sol +274 -56
  238. package/contracts/instance/InstanceServiceManager.sol +11 -13
  239. package/contracts/instance/InstanceStore.sol +219 -0
  240. package/contracts/instance/ObjectManager.sol +82 -0
  241. package/contracts/instance/base/ComponentService.sol +147 -0
  242. package/contracts/instance/base/KeyValueStore.sol +13 -5
  243. package/contracts/instance/base/Lifecycle.sol +11 -2
  244. package/contracts/instance/module/IAccess.sol +36 -20
  245. package/contracts/instance/module/IBundle.sol +8 -4
  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 +30 -3
  249. package/contracts/instance/module/ISetup.sol +9 -19
  250. package/contracts/instance/service/ApplicationService.sol +183 -0
  251. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  252. package/contracts/instance/service/BundleService.sol +431 -0
  253. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  254. package/contracts/instance/service/ClaimService.sol +145 -0
  255. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  256. package/contracts/instance/service/DistributionService.sol +346 -0
  257. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  258. package/contracts/instance/service/IApplicationService.sol +64 -0
  259. package/contracts/instance/service/IBundleService.sol +94 -0
  260. package/contracts/instance/service/IClaimService.sol +61 -0
  261. package/contracts/instance/service/IDistributionService.sol +74 -1
  262. package/contracts/instance/service/IPolicyService.sol +74 -0
  263. package/contracts/instance/service/IPoolService.sol +80 -18
  264. package/contracts/instance/service/IPricingService.sol +36 -0
  265. package/contracts/instance/service/IProductService.sol +7 -74
  266. package/contracts/instance/service/PolicyService.sol +376 -0
  267. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  268. package/contracts/instance/service/PoolService.sol +303 -0
  269. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  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 +210 -0
  273. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  274. package/contracts/registry/ChainNft.sol +9 -1
  275. package/contracts/registry/IRegistry.sol +52 -8
  276. package/contracts/registry/IRegistryService.sol +53 -20
  277. package/contracts/registry/ITransferInterceptor.sol +1 -0
  278. package/contracts/registry/Registry.sol +270 -226
  279. package/contracts/registry/RegistryAccessManager.sol +216 -0
  280. package/contracts/registry/RegistryService.sol +118 -271
  281. package/contracts/registry/RegistryServiceManager.sol +24 -26
  282. package/contracts/registry/ReleaseManager.sol +324 -0
  283. package/contracts/registry/TokenRegistry.sol +116 -0
  284. package/contracts/shared/ERC165.sol +14 -8
  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 +16 -0
  290. package/contracts/shared/IVersionable.sol +4 -47
  291. package/contracts/shared/NftOwnable.sol +67 -83
  292. package/contracts/shared/PolicyHolder.sol +81 -0
  293. package/contracts/shared/ProxyManager.sol +100 -25
  294. package/contracts/shared/Registerable.sol +16 -31
  295. package/contracts/shared/RegistryLinked.sol +48 -0
  296. package/contracts/shared/Service.sol +72 -0
  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 +6 -7
  301. package/contracts/types/Amount.sol +60 -0
  302. package/contracts/types/Blocknumber.sol +1 -0
  303. package/contracts/types/ClaimId.sol +52 -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/NftIdSet.sol +26 -24
  308. package/contracts/types/ObjectType.sol +14 -5
  309. package/contracts/types/PayoutId.sol +54 -0
  310. package/contracts/types/Referral.sol +4 -0
  311. package/contracts/types/RoleId.sol +26 -11
  312. package/contracts/types/Seconds.sol +54 -0
  313. package/contracts/types/StateId.sol +5 -0
  314. package/contracts/types/Timestamp.sol +13 -13
  315. package/contracts/types/UFixed.sol +1 -0
  316. package/contracts/types/Version.sol +5 -1
  317. package/package.json +3 -3
  318. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  319. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  320. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -267
  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/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  362. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1119
  363. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  364. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  365. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  366. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  367. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  368. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  369. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  370. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  371. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
  372. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  373. package/contracts/components/BaseComponent.sol +0 -86
  374. package/contracts/components/IBaseComponent.sol +0 -24
  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 -114
  391. package/contracts/instance/AccessManagerSimple.sol +0 -682
  392. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  393. package/contracts/instance/base/ComponentServiceBase.sol +0 -49
  394. package/contracts/instance/base/IInstanceBase.sol +0 -23
  395. package/contracts/instance/base/IService.sol +0 -15
  396. package/contracts/instance/base/ServiceBase.sol +0 -44
  397. package/contracts/instance/service/ComponentOwnerService.sol +0 -317
  398. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
@@ -0,0 +1,872 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ProductService",
4
+ "sourceName": "contracts/instance/service/ProductService.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": "address",
48
+ "name": "component",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "ErrorComponentServiceComponentLocked",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "address",
59
+ "name": "component",
60
+ "type": "address"
61
+ },
62
+ {
63
+ "internalType": "ObjectType",
64
+ "name": "expectedType",
65
+ "type": "uint8"
66
+ },
67
+ {
68
+ "internalType": "ObjectType",
69
+ "name": "foundType",
70
+ "type": "uint8"
71
+ }
72
+ ],
73
+ "name": "ErrorComponentServiceComponentTypeInvalid",
74
+ "type": "error"
75
+ },
76
+ {
77
+ "inputs": [
78
+ {
79
+ "internalType": "NftId",
80
+ "name": "instanceNftId",
81
+ "type": "uint96"
82
+ },
83
+ {
84
+ "internalType": "RoleId",
85
+ "name": "requiredRole",
86
+ "type": "uint64"
87
+ },
88
+ {
89
+ "internalType": "address",
90
+ "name": "sender",
91
+ "type": "address"
92
+ }
93
+ ],
94
+ "name": "ErrorComponentServiceExpectedRoleMissing",
95
+ "type": "error"
96
+ },
97
+ {
98
+ "inputs": [
99
+ {
100
+ "internalType": "address",
101
+ "name": "component",
102
+ "type": "address"
103
+ },
104
+ {
105
+ "internalType": "ObjectType",
106
+ "name": "requiredType",
107
+ "type": "uint8"
108
+ },
109
+ {
110
+ "internalType": "ObjectType",
111
+ "name": "componentType",
112
+ "type": "uint8"
113
+ }
114
+ ],
115
+ "name": "ErrorComponentServiceInvalidType",
116
+ "type": "error"
117
+ },
118
+ {
119
+ "inputs": [
120
+ {
121
+ "internalType": "address",
122
+ "name": "component",
123
+ "type": "address"
124
+ }
125
+ ],
126
+ "name": "ErrorComponentServiceNotComponent",
127
+ "type": "error"
128
+ },
129
+ {
130
+ "inputs": [
131
+ {
132
+ "internalType": "address",
133
+ "name": "component",
134
+ "type": "address"
135
+ },
136
+ {
137
+ "internalType": "address",
138
+ "name": "initialOwner",
139
+ "type": "address"
140
+ },
141
+ {
142
+ "internalType": "address",
143
+ "name": "sender",
144
+ "type": "address"
145
+ }
146
+ ],
147
+ "name": "ErrorComponentServiceSenderNotOwner",
148
+ "type": "error"
149
+ },
150
+ {
151
+ "inputs": [
152
+ {
153
+ "internalType": "address",
154
+ "name": "sender",
155
+ "type": "address"
156
+ }
157
+ ],
158
+ "name": "ErrorComponentServiceSenderNotService",
159
+ "type": "error"
160
+ },
161
+ {
162
+ "inputs": [
163
+ {
164
+ "internalType": "address",
165
+ "name": "target",
166
+ "type": "address"
167
+ }
168
+ ],
169
+ "name": "ErrorIAccessTargetLocked",
170
+ "type": "error"
171
+ },
172
+ {
173
+ "inputs": [
174
+ {
175
+ "internalType": "NftId",
176
+ "name": "nftId",
177
+ "type": "uint96"
178
+ }
179
+ ],
180
+ "name": "ErrorNftOwnableAlreadyLinked",
181
+ "type": "error"
182
+ },
183
+ {
184
+ "inputs": [
185
+ {
186
+ "internalType": "address",
187
+ "name": "contractAddress",
188
+ "type": "address"
189
+ }
190
+ ],
191
+ "name": "ErrorNftOwnableContractNotRegistered",
192
+ "type": "error"
193
+ },
194
+ {
195
+ "inputs": [],
196
+ "name": "ErrorNftOwnableInitialOwnerZero",
197
+ "type": "error"
198
+ },
199
+ {
200
+ "inputs": [
201
+ {
202
+ "internalType": "address",
203
+ "name": "account",
204
+ "type": "address"
205
+ }
206
+ ],
207
+ "name": "ErrorNftOwnableNotOwner",
208
+ "type": "error"
209
+ },
210
+ {
211
+ "inputs": [
212
+ {
213
+ "internalType": "address",
214
+ "name": "registryAddress",
215
+ "type": "address"
216
+ }
217
+ ],
218
+ "name": "ErrorNotRegistry",
219
+ "type": "error"
220
+ },
221
+ {
222
+ "inputs": [],
223
+ "name": "InvalidInitialization",
224
+ "type": "error"
225
+ },
226
+ {
227
+ "inputs": [],
228
+ "name": "NotInitializing",
229
+ "type": "error"
230
+ },
231
+ {
232
+ "anonymous": false,
233
+ "inputs": [
234
+ {
235
+ "indexed": false,
236
+ "internalType": "address",
237
+ "name": "authority",
238
+ "type": "address"
239
+ }
240
+ ],
241
+ "name": "AuthorityUpdated",
242
+ "type": "event"
243
+ },
244
+ {
245
+ "anonymous": false,
246
+ "inputs": [
247
+ {
248
+ "indexed": false,
249
+ "internalType": "uint64",
250
+ "name": "version",
251
+ "type": "uint64"
252
+ }
253
+ ],
254
+ "name": "Initialized",
255
+ "type": "event"
256
+ },
257
+ {
258
+ "anonymous": false,
259
+ "inputs": [
260
+ {
261
+ "indexed": false,
262
+ "internalType": "address",
263
+ "name": "sender",
264
+ "type": "address"
265
+ }
266
+ ],
267
+ "name": "LogProductServiceSender",
268
+ "type": "event"
269
+ },
270
+ {
271
+ "inputs": [],
272
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
273
+ "outputs": [
274
+ {
275
+ "internalType": "bytes32",
276
+ "name": "",
277
+ "type": "bytes32"
278
+ }
279
+ ],
280
+ "stateMutability": "view",
281
+ "type": "function"
282
+ },
283
+ {
284
+ "inputs": [],
285
+ "name": "REGISTERABLE_LOCATION_V1",
286
+ "outputs": [
287
+ {
288
+ "internalType": "bytes32",
289
+ "name": "",
290
+ "type": "bytes32"
291
+ }
292
+ ],
293
+ "stateMutability": "view",
294
+ "type": "function"
295
+ },
296
+ {
297
+ "inputs": [],
298
+ "name": "authority",
299
+ "outputs": [
300
+ {
301
+ "internalType": "address",
302
+ "name": "",
303
+ "type": "address"
304
+ }
305
+ ],
306
+ "stateMutability": "view",
307
+ "type": "function"
308
+ },
309
+ {
310
+ "inputs": [
311
+ {
312
+ "internalType": "RiskId",
313
+ "name": "riskId",
314
+ "type": "bytes8"
315
+ },
316
+ {
317
+ "internalType": "bytes",
318
+ "name": "data",
319
+ "type": "bytes"
320
+ }
321
+ ],
322
+ "name": "createRisk",
323
+ "outputs": [],
324
+ "stateMutability": "nonpayable",
325
+ "type": "function"
326
+ },
327
+ {
328
+ "inputs": [],
329
+ "name": "getDomain",
330
+ "outputs": [
331
+ {
332
+ "internalType": "ObjectType",
333
+ "name": "",
334
+ "type": "uint8"
335
+ }
336
+ ],
337
+ "stateMutability": "pure",
338
+ "type": "function"
339
+ },
340
+ {
341
+ "inputs": [],
342
+ "name": "getInitialInfo",
343
+ "outputs": [
344
+ {
345
+ "components": [
346
+ {
347
+ "internalType": "NftId",
348
+ "name": "nftId",
349
+ "type": "uint96"
350
+ },
351
+ {
352
+ "internalType": "NftId",
353
+ "name": "parentNftId",
354
+ "type": "uint96"
355
+ },
356
+ {
357
+ "internalType": "ObjectType",
358
+ "name": "objectType",
359
+ "type": "uint8"
360
+ },
361
+ {
362
+ "internalType": "bool",
363
+ "name": "isInterceptor",
364
+ "type": "bool"
365
+ },
366
+ {
367
+ "internalType": "address",
368
+ "name": "objectAddress",
369
+ "type": "address"
370
+ },
371
+ {
372
+ "internalType": "address",
373
+ "name": "initialOwner",
374
+ "type": "address"
375
+ },
376
+ {
377
+ "internalType": "bytes",
378
+ "name": "data",
379
+ "type": "bytes"
380
+ }
381
+ ],
382
+ "internalType": "struct IRegistry.ObjectInfo",
383
+ "name": "info",
384
+ "type": "tuple"
385
+ }
386
+ ],
387
+ "stateMutability": "view",
388
+ "type": "function"
389
+ },
390
+ {
391
+ "inputs": [],
392
+ "name": "getInstanceService",
393
+ "outputs": [
394
+ {
395
+ "internalType": "contract InstanceService",
396
+ "name": "",
397
+ "type": "address"
398
+ }
399
+ ],
400
+ "stateMutability": "view",
401
+ "type": "function"
402
+ },
403
+ {
404
+ "inputs": [],
405
+ "name": "getNftId",
406
+ "outputs": [
407
+ {
408
+ "internalType": "NftId",
409
+ "name": "",
410
+ "type": "uint96"
411
+ }
412
+ ],
413
+ "stateMutability": "view",
414
+ "type": "function"
415
+ },
416
+ {
417
+ "inputs": [],
418
+ "name": "getOwner",
419
+ "outputs": [
420
+ {
421
+ "internalType": "address",
422
+ "name": "",
423
+ "type": "address"
424
+ }
425
+ ],
426
+ "stateMutability": "view",
427
+ "type": "function"
428
+ },
429
+ {
430
+ "inputs": [],
431
+ "name": "getRegistry",
432
+ "outputs": [
433
+ {
434
+ "internalType": "contract IRegistry",
435
+ "name": "",
436
+ "type": "address"
437
+ }
438
+ ],
439
+ "stateMutability": "view",
440
+ "type": "function"
441
+ },
442
+ {
443
+ "inputs": [],
444
+ "name": "getRegistryAddress",
445
+ "outputs": [
446
+ {
447
+ "internalType": "address",
448
+ "name": "",
449
+ "type": "address"
450
+ }
451
+ ],
452
+ "stateMutability": "view",
453
+ "type": "function"
454
+ },
455
+ {
456
+ "inputs": [],
457
+ "name": "getRegistryService",
458
+ "outputs": [
459
+ {
460
+ "internalType": "contract IRegistryService",
461
+ "name": "",
462
+ "type": "address"
463
+ }
464
+ ],
465
+ "stateMutability": "view",
466
+ "type": "function"
467
+ },
468
+ {
469
+ "inputs": [],
470
+ "name": "getVersion",
471
+ "outputs": [
472
+ {
473
+ "internalType": "Version",
474
+ "name": "",
475
+ "type": "uint24"
476
+ }
477
+ ],
478
+ "stateMutability": "pure",
479
+ "type": "function"
480
+ },
481
+ {
482
+ "inputs": [],
483
+ "name": "initializeERC165",
484
+ "outputs": [],
485
+ "stateMutability": "nonpayable",
486
+ "type": "function"
487
+ },
488
+ {
489
+ "inputs": [
490
+ {
491
+ "internalType": "address",
492
+ "name": "initialOwner",
493
+ "type": "address"
494
+ },
495
+ {
496
+ "internalType": "address",
497
+ "name": "registryAddress",
498
+ "type": "address"
499
+ }
500
+ ],
501
+ "name": "initializeNftOwnable",
502
+ "outputs": [],
503
+ "stateMutability": "nonpayable",
504
+ "type": "function"
505
+ },
506
+ {
507
+ "inputs": [
508
+ {
509
+ "internalType": "address",
510
+ "name": "registryAddress",
511
+ "type": "address"
512
+ },
513
+ {
514
+ "internalType": "NftId",
515
+ "name": "parentNftId",
516
+ "type": "uint96"
517
+ },
518
+ {
519
+ "internalType": "ObjectType",
520
+ "name": "objectType",
521
+ "type": "uint8"
522
+ },
523
+ {
524
+ "internalType": "bool",
525
+ "name": "isInterceptor",
526
+ "type": "bool"
527
+ },
528
+ {
529
+ "internalType": "address",
530
+ "name": "initialOwner",
531
+ "type": "address"
532
+ },
533
+ {
534
+ "internalType": "bytes",
535
+ "name": "registryData",
536
+ "type": "bytes"
537
+ }
538
+ ],
539
+ "name": "initializeRegisterable",
540
+ "outputs": [],
541
+ "stateMutability": "nonpayable",
542
+ "type": "function"
543
+ },
544
+ {
545
+ "inputs": [
546
+ {
547
+ "internalType": "address",
548
+ "name": "registryAddress",
549
+ "type": "address"
550
+ }
551
+ ],
552
+ "name": "initializeRegistryLinked",
553
+ "outputs": [],
554
+ "stateMutability": "nonpayable",
555
+ "type": "function"
556
+ },
557
+ {
558
+ "inputs": [
559
+ {
560
+ "internalType": "address",
561
+ "name": "registry",
562
+ "type": "address"
563
+ },
564
+ {
565
+ "internalType": "address",
566
+ "name": "authority",
567
+ "type": "address"
568
+ },
569
+ {
570
+ "internalType": "address",
571
+ "name": "initialOwner",
572
+ "type": "address"
573
+ }
574
+ ],
575
+ "name": "initializeService",
576
+ "outputs": [],
577
+ "stateMutability": "nonpayable",
578
+ "type": "function"
579
+ },
580
+ {
581
+ "inputs": [
582
+ {
583
+ "internalType": "address",
584
+ "name": "activatedBy",
585
+ "type": "address"
586
+ },
587
+ {
588
+ "internalType": "bytes",
589
+ "name": "data",
590
+ "type": "bytes"
591
+ }
592
+ ],
593
+ "name": "initializeVersionable",
594
+ "outputs": [],
595
+ "stateMutability": "nonpayable",
596
+ "type": "function"
597
+ },
598
+ {
599
+ "inputs": [],
600
+ "name": "isConsumingScheduledOp",
601
+ "outputs": [
602
+ {
603
+ "internalType": "bytes4",
604
+ "name": "",
605
+ "type": "bytes4"
606
+ }
607
+ ],
608
+ "stateMutability": "view",
609
+ "type": "function"
610
+ },
611
+ {
612
+ "inputs": [],
613
+ "name": "linkToRegisteredNftId",
614
+ "outputs": [],
615
+ "stateMutability": "nonpayable",
616
+ "type": "function"
617
+ },
618
+ {
619
+ "inputs": [
620
+ {
621
+ "internalType": "address",
622
+ "name": "productAddress",
623
+ "type": "address"
624
+ }
625
+ ],
626
+ "name": "register",
627
+ "outputs": [
628
+ {
629
+ "internalType": "NftId",
630
+ "name": "productNftId",
631
+ "type": "uint96"
632
+ }
633
+ ],
634
+ "stateMutability": "nonpayable",
635
+ "type": "function"
636
+ },
637
+ {
638
+ "inputs": [
639
+ {
640
+ "internalType": "bytes4",
641
+ "name": "interfaceId",
642
+ "type": "bytes4"
643
+ }
644
+ ],
645
+ "name": "registerInterface",
646
+ "outputs": [],
647
+ "stateMutability": "nonpayable",
648
+ "type": "function"
649
+ },
650
+ {
651
+ "inputs": [
652
+ {
653
+ "internalType": "address",
654
+ "name": "newAuthority",
655
+ "type": "address"
656
+ }
657
+ ],
658
+ "name": "setAuthority",
659
+ "outputs": [],
660
+ "stateMutability": "nonpayable",
661
+ "type": "function"
662
+ },
663
+ {
664
+ "inputs": [
665
+ {
666
+ "components": [
667
+ {
668
+ "internalType": "UFixed",
669
+ "name": "fractionalFee",
670
+ "type": "uint256"
671
+ },
672
+ {
673
+ "internalType": "uint256",
674
+ "name": "fixedFee",
675
+ "type": "uint256"
676
+ }
677
+ ],
678
+ "internalType": "struct Fee",
679
+ "name": "productFee",
680
+ "type": "tuple"
681
+ },
682
+ {
683
+ "components": [
684
+ {
685
+ "internalType": "UFixed",
686
+ "name": "fractionalFee",
687
+ "type": "uint256"
688
+ },
689
+ {
690
+ "internalType": "uint256",
691
+ "name": "fixedFee",
692
+ "type": "uint256"
693
+ }
694
+ ],
695
+ "internalType": "struct Fee",
696
+ "name": "processingFee",
697
+ "type": "tuple"
698
+ }
699
+ ],
700
+ "name": "setFees",
701
+ "outputs": [],
702
+ "stateMutability": "nonpayable",
703
+ "type": "function"
704
+ },
705
+ {
706
+ "inputs": [
707
+ {
708
+ "internalType": "bytes4",
709
+ "name": "interfaceId",
710
+ "type": "bytes4"
711
+ }
712
+ ],
713
+ "name": "supportsInterface",
714
+ "outputs": [
715
+ {
716
+ "internalType": "bool",
717
+ "name": "",
718
+ "type": "bool"
719
+ }
720
+ ],
721
+ "stateMutability": "view",
722
+ "type": "function"
723
+ },
724
+ {
725
+ "inputs": [
726
+ {
727
+ "internalType": "RiskId",
728
+ "name": "riskId",
729
+ "type": "bytes8"
730
+ },
731
+ {
732
+ "internalType": "bytes",
733
+ "name": "data",
734
+ "type": "bytes"
735
+ }
736
+ ],
737
+ "name": "updateRisk",
738
+ "outputs": [],
739
+ "stateMutability": "nonpayable",
740
+ "type": "function"
741
+ },
742
+ {
743
+ "inputs": [
744
+ {
745
+ "internalType": "RiskId",
746
+ "name": "riskId",
747
+ "type": "bytes8"
748
+ },
749
+ {
750
+ "internalType": "StateId",
751
+ "name": "state",
752
+ "type": "uint8"
753
+ }
754
+ ],
755
+ "name": "updateRiskState",
756
+ "outputs": [],
757
+ "stateMutability": "nonpayable",
758
+ "type": "function"
759
+ },
760
+ {
761
+ "inputs": [
762
+ {
763
+ "internalType": "bytes",
764
+ "name": "data",
765
+ "type": "bytes"
766
+ }
767
+ ],
768
+ "name": "upgradeVersionable",
769
+ "outputs": [],
770
+ "stateMutability": "nonpayable",
771
+ "type": "function"
772
+ }
773
+ ],
774
+ "bytecode": "0x60806040523480156200001157600080fd5b506200001c62000022565b620000d6565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000735760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620000d35780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6136b480620000e66000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063675393bf11610104578063ada9652e116100a2578063caf4e3d411610071578063caf4e3d414610438578063cc9fc59a14610440578063f21de1e814610318578063f7c34ee01461044857600080fd5b8063ada9652e146103e3578063b68d1809146103f8578063b6b412ba14610407578063bf7e214f1461041a57600080fd5b8063893d20e8116100de578063893d20e8146103945780638e32e9791461039c5780638f997f6d146103af5780638fb36037146103c257600080fd5b8063675393bf1461035b5780637a9e5e4b1461036e5780637cef48421461038157600080fd5b806327bb7a33116101715780634420e4861161014b5780634420e486146102da57806349bb9e4b146103055780635ab1bd5314610318578063644c45e01461033d57600080fd5b806327bb7a33146102ac578063329d6e74146102bf57806336fc697e146102d257600080fd5b80630fec111c116101ad5780630fec111c14610247578063138461e01461025c5780631eff4b2214610264578063214cdb801461029957600080fd5b806301ffc9a7146101d4578063095e2b72146102165780630d8e6e2c1461022b575b600080fd5b6102016101e236600461295b565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b610229610224366004612ad9565b61045b565b005b610233610557565b60405162ffffff909116815260200161020d565b61024f6105e1565b60405161020d9190612b76565b61022961077d565b61028b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b60405190815260200161020d565b6102296102a736600461295b565b610984565b6102296102ba366004612c48565b6109b1565b6102296102cd366004612ce0565b610a3d565b610229610b8a565b6102ed6102e8366004612d14565b610bd0565b6040516001600160601b03909116815260200161020d565b610229610313366004612d31565b610c95565b6001546001600160a01b03165b6040516001600160a01b03909116815260200161020d565b60008051602061361f833981519152546001600160601b03166102ed565b610229610369366004612d14565b610d94565b61022961037c366004612d14565b610ea2565b61022961038f366004612d4f565b610f3c565b610325611018565b6102296103aa366004612d86565b61114f565b6102296103bd366004612ad9565b611388565b6103ca611515565b6040516001600160e01b0319909116815260200161020d565b61028b60008051602061361f83398151915281565b604051606e815260200161020d565b610229610415366004612e01565b61154d565b60008051602061363f833981519152546001600160a01b0316610325565b61032561171b565b610325611727565b610229610456366004612e2d565b611733565b600080610468606e6117aa565b925050915060006040518060400160405280846001600160601b03168152602001858152509050816001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f19190612e5b565b6001600160a01b0316632f61088a86836040518363ffffffff1660e01b815260040161051e929190612ea0565b600060405180830381600087803b15801561053857600080fd5b505af115801561054c573d6000803e3d6000fd5b505050505050505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156105b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105dc9190612ec5565b905090565b6105e961291d565b604080516080810182527f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b038116835260ff600160601b820481166020850152600160681b909104161515928201929092527f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa301805460009391606084019161067990612eea565b80601f01602080910402602001604051908101604052809291908181526020018280546106a590612eea565b80156106f25780601f106106c7576101008083540402835291602001916106f2565b820191906000526020600020905b8154815290600101906020018083116106d557829003601f168201915b50505050508152505090506040518060e00160405280610710600090565b6001600160601b0316815260200182600001516001600160601b03168152602001826020015160ff168152602001826040015115158152602001306001600160a01b03168152602001610761611018565b6001600160a01b03168152602001826060015181525091505090565b600060008051602061361f83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156107ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108109190612f2f565b156108415780546040516301ab8b6760e21b81526001600160601b0390911660048201526024015b60405180910390fd5b306108546001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa15801561089c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c09190612f2f565b6108e85760405163b9304b0d60e01b81526001600160a01b0382166004820152602401610838565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa15801561093c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109609190612f57565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b61098c61194c565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b6109b961194c565b6109c38287611733565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b86151502178155905060018101610a338382612fc2565b5050505050505050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610a5f610557565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610a9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac39190613096565b60008051602061365f8339815191528054600160401b900460ff1680610af6575080546001600160401b03808416911610155b15610b145760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610b3e83611985565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050565b610b9261194c565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b600080808080610be986606e610be461198d565b611a04565b92965090945092509050856000610bfe61171b565b604051635d96628960e01b81526001600160a01b03848116600483015287811660248301529190911690635d966289906044016000604051808303816000875af1158015610c50573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c789190810190613119565b805197509050610c89848389611cf5565b50505050505050919050565b60008051602061365f8339815191528054600160401b810460ff1615906001600160401b0316600081158015610cc85750825b90506000826001600160401b03166001148015610ce45750303b155b905081158015610cf2575080155b15610d105760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d3a57845460ff60401b1916600160401b1785555b610d4487876123b0565b8315610d8b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15b50505050505050565b610d9c61194c565b806001600160a01b03163b600003610dd25760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610838565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152630a3888e560e31b60048201526301ffc9a790602401602060405180830381865afa925050508015610e4c575060408051601f3d908101601f19168201909252610e4991810190612f2f565b60015b610e745760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610838565b80610e9d5760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610838565b505b50565b33610ec260008051602061363f833981519152546001600160a01b031690565b6001600160a01b0316816001600160a01b031614610efd5760405162d1953b60e31b81526001600160a01b0382166004820152602401610838565b816001600160a01b03163b600003610f33576040516361798f2f60e11b81526001600160a01b0383166004820152602401610838565b610e9d826125ee565b6000610f48606e6117aa565b92505050806001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fae9190612e5b565b604051633e77a42160e11b81526001600160c01b03198516600482015260ff841660248201526001600160a01b039190911690637cef484290604401600060405180830381600087803b15801561100457600080fd5b505af1158015610d8b573d6000803e3d6000fd5b60008060008051602061361f83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611088573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ac9190612f2f565b15611139576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa15801561110f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111339190612e5b565b91505090565b54600160601b90046001600160a01b0316919050565b61115761194c565b6111d783846001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611199573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bd9190612f57565b603c600085604051806020016040528060008152506109b1565b6001600160a01b038216156111f4576111ef8261264f565b611363565b60006112086001546001600160a01b031690565b6001600160a01b031663d39e60436028604051632392b61b60e21b81526003600482015273__$9dab98ad7ae1a426029e5739f922230a41$__90638e4ad86c90602401602060405180830381865af4158015611268573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061128c91906131eb565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa1580156112d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f59190612e5b565b9050611361816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611338573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135c9190612e5b565b61264f565b505b611373634a531f3360e01b610984565b61138363b68d180960e01b610984565b505050565b6000611394606e6117aa565b925050506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113fc9190612e5b565b60405163887b1fa960e01b81526001600160c01b0319861660048201529091506000906001600160a01b0383169063887b1fa990602401600060405180830381865afa158015611450573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114789190810190613208565b9050838160200181905250826001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e59190612e5b565b6001600160a01b031663a76ee018868360ff6040518463ffffffff1660e01b815260040161051e93929190613287565b60008051602061363f833981519152805460009190600160a01b900460ff1661153f576000611133565b638fb3603760e01b91505090565b60008061155a606e6117aa565b92505091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa15801561159f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c39190612e5b565b60405163242bdc1960e21b81526001600160601b03851660048201529091506000906001600160a01b038316906390af70649060240161014060405180830381865afa158015611617573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163b91906132ef565b9050858160800181905250848160a00181905250826001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561168d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b19190612e5b565b6001600160a01b0316630cbc6b89858360ff6040518463ffffffff1660e01b81526004016116e19392919061342b565b600060405180830381600087803b1580156116fb57600080fd5b505af115801561170f573d6000803e3d6000fd5b50505050505050505050565b60006105dc6028612660565b60006105dc6046612660565b61173b61194c565b61174481610d94565b61174c610b8a565b6001600160a01b0382166117735760405163f17ef42d60e01b815260040160405180910390fd5b5060008051602061361f83398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b60006117b461291d565b60006117c86001546001600160a01b031690565b604051636939560f60e11b81523360048201526001600160a01b03919091169063d272ac1e90602401602060405180830381865afa15801561180e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118329190612f57565b925061183e8385612773565b8092508193505050806001600160a01b031663e5f6cd276040518163ffffffff1660e01b8152600401602060405180830381865afa158015611884573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a89190612e5b565b6080830151604051629b7b3560e61b81526001600160a01b0391821660048201529116906326decd4090602401602060405180830381865afa1580156118f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119169190612f2f565b1561194557608082015160405163d53987e560e01b81526001600160a01b039091166004820152602401610838565b9193909250565b60008051602061365f83398151915254600160401b900460ff1661198357604051631afcd79f60e31b815260040160405180910390fd5b565b6101cf61194c565b6040516368aebf7b60e01b81526005600482015260009073__$cd131c2b3ba46b9dbe046aaf4458b9777d$__906368aebf7b90602401602060405180830381865af41580156119e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105dc9190613096565b6040516301ffc9a760e01b81526396c8ab0560e01b60048201528390339060009081906001600160a01b038516906301ffc9a790602401602060405180830381865afa158015611a58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a7c9190612f2f565b611aa4576040516359bff0e360e11b81526001600160a01b0388166004820152602401610838565b6000846001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611ae4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b0c9190810190613119565b9050611b2381604001518860ff9081169116141590565b15611b63576040808201519051634a2e948760e11b81526001600160a01b038a16600482015260ff808a1660248301529091166044820152606401610838565b60a08101516001600160a01b0385811690821614611bb55760a0820151604051632b50a20960e21b81526001600160a01b03808c16600483015291821660248201529086166044820152606401610838565b81602001519250611bc583612877565b9350836001600160a01b031663e5f6cd276040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c299190612e5b565b6040516368fc2b7760e11b81526001600160401b03891660048201526001600160a01b038781166024830152919091169063d1f856ee90604401602060405180830381865afa158015611c80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca49190612f2f565b611cea57604051636af540d960e01b81526001600160601b03841660048201526001600160401b03881660248201526001600160a01b0386166044820152606401610838565b505093509350935093565b60606000836001600160a01b031663c200b8096040518163ffffffff1660e01b815260040161014060405180830381865afa158015611d38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d5c91906132ef565b90506000611d726001546001600160a01b031690565b60408084015190516305247a1760e51b81526001600160601b0390911660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015611dc7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611def9190810190613119565b6080015190506000611e096001546001600160a01b031690565b60608401516040516305247a1760e51b81526001600160601b0390911660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015611e5e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e869190810190613119565b6080015160405163054cb8d160e31b81526001600160601b03871660048201529091506001600160a01b03831690632a65c68890602401600060405180830381600087803b158015611ed757600080fd5b505af1158015611eeb573d6000803e3d6000fd5b505060405163054cb8d160e31b81526001600160601b03881660048201526001600160a01b0384169250632a65c6889150602401600060405180830381600087803b158015611f3957600080fd5b505af1158015611f4d573d6000803e3d6000fd5b505060405163054cb8d160e31b81526001600160601b03881660048201526001600160a01b0389169250632a65c6889150602401600060405180830381600087803b158015611f9b57600080fd5b505af1158015611faf573d6000803e3d6000fd5b50505050856001600160a01b031663138461e06040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611fee57600080fd5b505af1158015612002573d6000803e3d6000fd5b50505050866001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015612044573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120689190612e5b565b6001600160a01b031663fbc1a3a086886001600160a01b031663c200b8096040518163ffffffff1660e01b815260040161014060405180830381865afa1580156120b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120da91906132ef565b6040518363ffffffff1660e01b81526004016120f792919061345b565b600060405180830381600087803b15801561211157600080fd5b505af1158015612125573d6000803e3d6000fd5b5060009250600191506121359050565b60405190808252806020026020018201604052801561216857816020015b60608152602001906001900390816121535790505b5060408051600180825281830190925291925060208083019080368337019050508160008151811061219c5761219c613479565b602002602001018190525063b6b412ba60e01b816000815181106121c2576121c2613479565b60200260200101516000815181106121dc576121dc613479565b6001600160e01b0319929092166020928302919091019091015260408051600180825281830190925260009181602001602082028036833701905050905061222261198d565b8160008151811061223557612235613479565b60200260200101906001600160401b031690816001600160401b03168152505061225d611727565b6001600160a01b0316636c6fbb2861227d6001546001600160a01b031690565b604051636939560f60e11b81526001600160a01b038d81166004830152919091169063d272ac1e90602401602060405180830381865afa1580156122c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122e99190612f57565b8a8b6001600160a01b03166317d7de7c6040518163ffffffff1660e01b8152600401600060405180830381865afa158015612328573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612350919081019061348f565b86866040518663ffffffff1660e01b815260040161237295949392919061351b565b600060405180830381600087803b15801561238c57600080fd5b505af11580156123a0573d6000803e3d6000fd5b5050505050505050509392505050565b60008051602061365f8339815191528054600160401b810460ff1615906001600160401b03166000811580156123e35750825b90506000826001600160401b031660011480156123ff5750303b155b90508115801561240d575080155b1561242b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561245557845460ff60401b1916600160401b1785555b6000808780602001905181019061246c91906135ef565b909250905061247d8260008b61114f565b6001546001600160a01b031663d39e6043608c612498610557565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af41580156124ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061251191906131eb565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015612556573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061257a9190612e5b565b600280546001600160a01b0319166001600160a01b03929092169190911790556125aa6308bcea6160e01b610984565b50508315610d8b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602001610d82565b60008051602061363f83398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b61265761194c565b610e9f8161290c565b60006126746001546001600160a01b031690565b6001600160a01b031663d39e60438361268b610557565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af41580156126e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061270491906131eb565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015612749573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061276d9190612e5b565b92915050565b61277b61291d565b600061278f6001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03861660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa1580156127de573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526128069190810190613119565b915061281d82604001518460ff9081169116141590565b1561286157608082015160408084015190516304081d4960e41b81526001600160a01b03909216600483015260ff8086166024840152166044820152606401610838565b61286e8260200151612877565b90509250929050565b600061288b6001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03841660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa1580156128da573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526129029190810190613119565b6080015192915050565b61291461194c565b610e9f816125ee565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b60006020828403121561296d57600080fd5b81356001600160e01b03198116811461298557600080fd5b9392505050565b80356001600160c01b0319811681146129a457600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156129e1576129e16129a9565b60405290565b60405160e081016001600160401b03811182821017156129e1576129e16129a9565b60405161010081016001600160401b03811182821017156129e1576129e16129a9565b604051601f8201601f191681016001600160401b0381118282101715612a5457612a546129a9565b604052919050565b60006001600160401b03821115612a7557612a756129a9565b50601f01601f191660200190565b600082601f830112612a9457600080fd5b8135612aa7612aa282612a5c565b612a2c565b818152846020838601011115612abc57600080fd5b816020850160208301376000918101602001919091529392505050565b60008060408385031215612aec57600080fd5b612af58361298c565b915060208301356001600160401b03811115612b1057600080fd5b612b1c85828601612a83565b9150509250929050565b60005b83811015612b41578181015183820152602001612b29565b50506000910152565b60008151808452612b62816020860160208601612b26565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a0830151612bdf60c08401826001600160a01b03169052565b5060c083015160e080840152612bf9610100840182612b4a565b949350505050565b6001600160a01b0381168114610e9f57600080fd5b6001600160601b0381168114610e9f57600080fd5b60ff81168114610e9f57600080fd5b8015158114610e9f57600080fd5b60008060008060008060c08789031215612c6157600080fd5b8635612c6c81612c01565b95506020870135612c7c81612c16565b94506040870135612c8c81612c2b565b93506060870135612c9c81612c3a565b92506080870135612cac81612c01565b915060a08701356001600160401b03811115612cc757600080fd5b612cd389828a01612a83565b9150509295509295509295565b600060208284031215612cf257600080fd5b81356001600160401b03811115612d0857600080fd5b612bf984828501612a83565b600060208284031215612d2657600080fd5b813561298581612c01565b60008060408385031215612d4457600080fd5b8235612af581612c01565b60008060408385031215612d6257600080fd5b612d6b8361298c565b91506020830135612d7b81612c2b565b809150509250929050565b600080600060608486031215612d9b57600080fd5b8335612da681612c01565b92506020840135612db681612c01565b91506040840135612dc681612c01565b809150509250925092565b600060408284031215612de357600080fd5b612deb6129bf565b9050813581526020820135602082015292915050565b60008060808385031215612e1457600080fd5b612e1e8484612dd1565b915061286e8460408501612dd1565b60008060408385031215612e4057600080fd5b8235612e4b81612c01565b91506020830135612d7b81612c01565b600060208284031215612e6d57600080fd5b815161298581612c01565b6001600160601b0381511682526000602082015160406020850152612bf96040850182612b4a565b6001600160401b0360c01b83168152604060208201526000612bf96040830184612e78565b600060208284031215612ed757600080fd5b815162ffffff8116811461298557600080fd5b600181811c90821680612efe57607f821691505b602082108103612f1e57634e487b7160e01b600052602260045260246000fd5b50919050565b80516129a481612c3a565b600060208284031215612f4157600080fd5b815161298581612c3a565b80516129a481612c16565b600060208284031215612f6957600080fd5b815161298581612c16565b601f82111561138357600081815260208120601f850160051c81016020861015612f9b5750805b601f850160051c820191505b81811015612fba57828155600101612fa7565b505050505050565b81516001600160401b03811115612fdb57612fdb6129a9565b612fef81612fe98454612eea565b84612f74565b602080601f831160018114613024576000841561300c5750858301515b600019600386901b1c1916600185901b178555612fba565b600085815260208120601f198616915b8281101561305357888601518255948401946001909101908401613034565b50858210156130715787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160401b0381168114610e9f57600080fd5b6000602082840312156130a857600080fd5b815161298581613081565b80516129a481612c2b565b80516129a481612c01565b60006130d7612aa284612a5c565b90508281528383830111156130eb57600080fd5b612985836020830184612b26565b600082601f83011261310a57600080fd5b612985838351602085016130c9565b60006020828403121561312b57600080fd5b81516001600160401b038082111561314257600080fd5b9083019060e0828603121561315657600080fd5b61315e6129e7565b61316783612f4c565b815261317560208401612f4c565b6020820152613186604084016130b3565b604082015261319760608401612f24565b60608201526131a8608084016130be565b60808201526131b960a084016130be565b60a082015260c0830151828111156131d057600080fd5b6131dc878286016130f9565b60c08301525095945050505050565b6000602082840312156131fd57600080fd5b815161298581612c2b565b60006020828403121561321a57600080fd5b81516001600160401b038082111561323157600080fd5b908301906040828603121561324557600080fd5b61324d6129bf565b825161325881612c16565b815260208301518281111561326c57600080fd5b613278878286016130f9565b60208301525095945050505050565b6001600160401b0360c01b841681526060602082015260006132ac6060830185612e78565b905060ff83166040830152949350505050565b6000604082840312156132d157600080fd5b6132d96129bf565b9050815181526020820151602082015292915050565b6000610140828403121561330257600080fd5b61330a612a09565b613313836130be565b8152613321602084016130be565b602082015261333260408401612f4c565b604082015261334360608401612f4c565b606082015261335584608085016132bf565b60808201526133678460c085016132bf565b60a08201526133796101008401612f24565b60c082015261338b61012084016130be565b60e08201529392505050565b60018060a01b038082511683528060208301511660208401525060408101516001600160601b038082166040850152806060840151166060850152505060808101516133f0608084018280518252602090810151910152565b5060a0810151805160c0840152602081015160e08401525060c0810151151561010083015260e001516001600160a01b031661012090910152565b6001600160601b038416815261018081016134496020830185613397565b60ff8316610160830152949350505050565b6001600160601b038316815261016081016129856020830184613397565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156134a157600080fd5b81516001600160401b038111156134b757600080fd5b8201601f810184136134c857600080fd5b612bf9848251602084016130c9565b600081518084526020808501945080840160005b838110156135105781516001600160401b0316875295820195908201906001016134eb565b509495945050505050565b6001600160601b03861681526000602060018060a01b0387168184015260a0604084015261354c60a0840187612b4a565b8381036060850152855180825282820190600581901b830184018489016000805b848110156135ca57868403601f19018652825180518086529089019089860190845b818110156135b55783516001600160e01b0319168352928b0192918b019160010161358f565b5050968901969450509187019160010161356d565b50505086810360808801526135df81896134d7565b9c9b505050505050505050505050565b6000806040838503121561360257600080fd5b825161360d81612c01565b6020840151909250612d7b81612c0156fe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a264697066735822122004213298b729260f08108b184096f7178b8b724febadaadeb31a8f738c76e86464736f6c63430008140033",
775
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063675393bf11610104578063ada9652e116100a2578063caf4e3d411610071578063caf4e3d414610438578063cc9fc59a14610440578063f21de1e814610318578063f7c34ee01461044857600080fd5b8063ada9652e146103e3578063b68d1809146103f8578063b6b412ba14610407578063bf7e214f1461041a57600080fd5b8063893d20e8116100de578063893d20e8146103945780638e32e9791461039c5780638f997f6d146103af5780638fb36037146103c257600080fd5b8063675393bf1461035b5780637a9e5e4b1461036e5780637cef48421461038157600080fd5b806327bb7a33116101715780634420e4861161014b5780634420e486146102da57806349bb9e4b146103055780635ab1bd5314610318578063644c45e01461033d57600080fd5b806327bb7a33146102ac578063329d6e74146102bf57806336fc697e146102d257600080fd5b80630fec111c116101ad5780630fec111c14610247578063138461e01461025c5780631eff4b2214610264578063214cdb801461029957600080fd5b806301ffc9a7146101d4578063095e2b72146102165780630d8e6e2c1461022b575b600080fd5b6102016101e236600461295b565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b610229610224366004612ad9565b61045b565b005b610233610557565b60405162ffffff909116815260200161020d565b61024f6105e1565b60405161020d9190612b76565b61022961077d565b61028b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b60405190815260200161020d565b6102296102a736600461295b565b610984565b6102296102ba366004612c48565b6109b1565b6102296102cd366004612ce0565b610a3d565b610229610b8a565b6102ed6102e8366004612d14565b610bd0565b6040516001600160601b03909116815260200161020d565b610229610313366004612d31565b610c95565b6001546001600160a01b03165b6040516001600160a01b03909116815260200161020d565b60008051602061361f833981519152546001600160601b03166102ed565b610229610369366004612d14565b610d94565b61022961037c366004612d14565b610ea2565b61022961038f366004612d4f565b610f3c565b610325611018565b6102296103aa366004612d86565b61114f565b6102296103bd366004612ad9565b611388565b6103ca611515565b6040516001600160e01b0319909116815260200161020d565b61028b60008051602061361f83398151915281565b604051606e815260200161020d565b610229610415366004612e01565b61154d565b60008051602061363f833981519152546001600160a01b0316610325565b61032561171b565b610325611727565b610229610456366004612e2d565b611733565b600080610468606e6117aa565b925050915060006040518060400160405280846001600160601b03168152602001858152509050816001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f19190612e5b565b6001600160a01b0316632f61088a86836040518363ffffffff1660e01b815260040161051e929190612ea0565b600060405180830381600087803b15801561053857600080fd5b505af115801561054c573d6000803e3d6000fd5b505050505050505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156105b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105dc9190612ec5565b905090565b6105e961291d565b604080516080810182527f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b038116835260ff600160601b820481166020850152600160681b909104161515928201929092527f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa301805460009391606084019161067990612eea565b80601f01602080910402602001604051908101604052809291908181526020018280546106a590612eea565b80156106f25780601f106106c7576101008083540402835291602001916106f2565b820191906000526020600020905b8154815290600101906020018083116106d557829003601f168201915b50505050508152505090506040518060e00160405280610710600090565b6001600160601b0316815260200182600001516001600160601b03168152602001826020015160ff168152602001826040015115158152602001306001600160a01b03168152602001610761611018565b6001600160a01b03168152602001826060015181525091505090565b600060008051602061361f83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156107ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108109190612f2f565b156108415780546040516301ab8b6760e21b81526001600160601b0390911660048201526024015b60405180910390fd5b306108546001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa15801561089c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c09190612f2f565b6108e85760405163b9304b0d60e01b81526001600160a01b0382166004820152602401610838565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa15801561093c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109609190612f57565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b61098c61194c565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b6109b961194c565b6109c38287611733565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b86151502178155905060018101610a338382612fc2565b5050505050505050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610a5f610557565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610a9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac39190613096565b60008051602061365f8339815191528054600160401b900460ff1680610af6575080546001600160401b03808416911610155b15610b145760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610b3e83611985565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050565b610b9261194c565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b600080808080610be986606e610be461198d565b611a04565b92965090945092509050856000610bfe61171b565b604051635d96628960e01b81526001600160a01b03848116600483015287811660248301529190911690635d966289906044016000604051808303816000875af1158015610c50573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c789190810190613119565b805197509050610c89848389611cf5565b50505050505050919050565b60008051602061365f8339815191528054600160401b810460ff1615906001600160401b0316600081158015610cc85750825b90506000826001600160401b03166001148015610ce45750303b155b905081158015610cf2575080155b15610d105760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d3a57845460ff60401b1916600160401b1785555b610d4487876123b0565b8315610d8b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15b50505050505050565b610d9c61194c565b806001600160a01b03163b600003610dd25760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610838565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152630a3888e560e31b60048201526301ffc9a790602401602060405180830381865afa925050508015610e4c575060408051601f3d908101601f19168201909252610e4991810190612f2f565b60015b610e745760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610838565b80610e9d5760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610838565b505b50565b33610ec260008051602061363f833981519152546001600160a01b031690565b6001600160a01b0316816001600160a01b031614610efd5760405162d1953b60e31b81526001600160a01b0382166004820152602401610838565b816001600160a01b03163b600003610f33576040516361798f2f60e11b81526001600160a01b0383166004820152602401610838565b610e9d826125ee565b6000610f48606e6117aa565b92505050806001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fae9190612e5b565b604051633e77a42160e11b81526001600160c01b03198516600482015260ff841660248201526001600160a01b039190911690637cef484290604401600060405180830381600087803b15801561100457600080fd5b505af1158015610d8b573d6000803e3d6000fd5b60008060008051602061361f83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611088573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ac9190612f2f565b15611139576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa15801561110f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111339190612e5b565b91505090565b54600160601b90046001600160a01b0316919050565b61115761194c565b6111d783846001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611199573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bd9190612f57565b603c600085604051806020016040528060008152506109b1565b6001600160a01b038216156111f4576111ef8261264f565b611363565b60006112086001546001600160a01b031690565b6001600160a01b031663d39e60436028604051632392b61b60e21b81526003600482015273__$9dab98ad7ae1a426029e5739f922230a41$__90638e4ad86c90602401602060405180830381865af4158015611268573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061128c91906131eb565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa1580156112d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f59190612e5b565b9050611361816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611338573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135c9190612e5b565b61264f565b505b611373634a531f3360e01b610984565b61138363b68d180960e01b610984565b505050565b6000611394606e6117aa565b925050506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113fc9190612e5b565b60405163887b1fa960e01b81526001600160c01b0319861660048201529091506000906001600160a01b0383169063887b1fa990602401600060405180830381865afa158015611450573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114789190810190613208565b9050838160200181905250826001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e59190612e5b565b6001600160a01b031663a76ee018868360ff6040518463ffffffff1660e01b815260040161051e93929190613287565b60008051602061363f833981519152805460009190600160a01b900460ff1661153f576000611133565b638fb3603760e01b91505090565b60008061155a606e6117aa565b92505091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa15801561159f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c39190612e5b565b60405163242bdc1960e21b81526001600160601b03851660048201529091506000906001600160a01b038316906390af70649060240161014060405180830381865afa158015611617573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163b91906132ef565b9050858160800181905250848160a00181905250826001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561168d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b19190612e5b565b6001600160a01b0316630cbc6b89858360ff6040518463ffffffff1660e01b81526004016116e19392919061342b565b600060405180830381600087803b1580156116fb57600080fd5b505af115801561170f573d6000803e3d6000fd5b50505050505050505050565b60006105dc6028612660565b60006105dc6046612660565b61173b61194c565b61174481610d94565b61174c610b8a565b6001600160a01b0382166117735760405163f17ef42d60e01b815260040160405180910390fd5b5060008051602061361f83398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b60006117b461291d565b60006117c86001546001600160a01b031690565b604051636939560f60e11b81523360048201526001600160a01b03919091169063d272ac1e90602401602060405180830381865afa15801561180e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118329190612f57565b925061183e8385612773565b8092508193505050806001600160a01b031663e5f6cd276040518163ffffffff1660e01b8152600401602060405180830381865afa158015611884573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a89190612e5b565b6080830151604051629b7b3560e61b81526001600160a01b0391821660048201529116906326decd4090602401602060405180830381865afa1580156118f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119169190612f2f565b1561194557608082015160405163d53987e560e01b81526001600160a01b039091166004820152602401610838565b9193909250565b60008051602061365f83398151915254600160401b900460ff1661198357604051631afcd79f60e31b815260040160405180910390fd5b565b6101cf61194c565b6040516368aebf7b60e01b81526005600482015260009073__$cd131c2b3ba46b9dbe046aaf4458b9777d$__906368aebf7b90602401602060405180830381865af41580156119e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105dc9190613096565b6040516301ffc9a760e01b81526396c8ab0560e01b60048201528390339060009081906001600160a01b038516906301ffc9a790602401602060405180830381865afa158015611a58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a7c9190612f2f565b611aa4576040516359bff0e360e11b81526001600160a01b0388166004820152602401610838565b6000846001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611ae4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b0c9190810190613119565b9050611b2381604001518860ff9081169116141590565b15611b63576040808201519051634a2e948760e11b81526001600160a01b038a16600482015260ff808a1660248301529091166044820152606401610838565b60a08101516001600160a01b0385811690821614611bb55760a0820151604051632b50a20960e21b81526001600160a01b03808c16600483015291821660248201529086166044820152606401610838565b81602001519250611bc583612877565b9350836001600160a01b031663e5f6cd276040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c299190612e5b565b6040516368fc2b7760e11b81526001600160401b03891660048201526001600160a01b038781166024830152919091169063d1f856ee90604401602060405180830381865afa158015611c80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca49190612f2f565b611cea57604051636af540d960e01b81526001600160601b03841660048201526001600160401b03881660248201526001600160a01b0386166044820152606401610838565b505093509350935093565b60606000836001600160a01b031663c200b8096040518163ffffffff1660e01b815260040161014060405180830381865afa158015611d38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d5c91906132ef565b90506000611d726001546001600160a01b031690565b60408084015190516305247a1760e51b81526001600160601b0390911660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015611dc7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611def9190810190613119565b6080015190506000611e096001546001600160a01b031690565b60608401516040516305247a1760e51b81526001600160601b0390911660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015611e5e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e869190810190613119565b6080015160405163054cb8d160e31b81526001600160601b03871660048201529091506001600160a01b03831690632a65c68890602401600060405180830381600087803b158015611ed757600080fd5b505af1158015611eeb573d6000803e3d6000fd5b505060405163054cb8d160e31b81526001600160601b03881660048201526001600160a01b0384169250632a65c6889150602401600060405180830381600087803b158015611f3957600080fd5b505af1158015611f4d573d6000803e3d6000fd5b505060405163054cb8d160e31b81526001600160601b03881660048201526001600160a01b0389169250632a65c6889150602401600060405180830381600087803b158015611f9b57600080fd5b505af1158015611faf573d6000803e3d6000fd5b50505050856001600160a01b031663138461e06040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611fee57600080fd5b505af1158015612002573d6000803e3d6000fd5b50505050866001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015612044573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120689190612e5b565b6001600160a01b031663fbc1a3a086886001600160a01b031663c200b8096040518163ffffffff1660e01b815260040161014060405180830381865afa1580156120b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120da91906132ef565b6040518363ffffffff1660e01b81526004016120f792919061345b565b600060405180830381600087803b15801561211157600080fd5b505af1158015612125573d6000803e3d6000fd5b5060009250600191506121359050565b60405190808252806020026020018201604052801561216857816020015b60608152602001906001900390816121535790505b5060408051600180825281830190925291925060208083019080368337019050508160008151811061219c5761219c613479565b602002602001018190525063b6b412ba60e01b816000815181106121c2576121c2613479565b60200260200101516000815181106121dc576121dc613479565b6001600160e01b0319929092166020928302919091019091015260408051600180825281830190925260009181602001602082028036833701905050905061222261198d565b8160008151811061223557612235613479565b60200260200101906001600160401b031690816001600160401b03168152505061225d611727565b6001600160a01b0316636c6fbb2861227d6001546001600160a01b031690565b604051636939560f60e11b81526001600160a01b038d81166004830152919091169063d272ac1e90602401602060405180830381865afa1580156122c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122e99190612f57565b8a8b6001600160a01b03166317d7de7c6040518163ffffffff1660e01b8152600401600060405180830381865afa158015612328573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612350919081019061348f565b86866040518663ffffffff1660e01b815260040161237295949392919061351b565b600060405180830381600087803b15801561238c57600080fd5b505af11580156123a0573d6000803e3d6000fd5b5050505050505050509392505050565b60008051602061365f8339815191528054600160401b810460ff1615906001600160401b03166000811580156123e35750825b90506000826001600160401b031660011480156123ff5750303b155b90508115801561240d575080155b1561242b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561245557845460ff60401b1916600160401b1785555b6000808780602001905181019061246c91906135ef565b909250905061247d8260008b61114f565b6001546001600160a01b031663d39e6043608c612498610557565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af41580156124ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061251191906131eb565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015612556573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061257a9190612e5b565b600280546001600160a01b0319166001600160a01b03929092169190911790556125aa6308bcea6160e01b610984565b50508315610d8b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602001610d82565b60008051602061363f83398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b61265761194c565b610e9f8161290c565b60006126746001546001600160a01b031690565b6001600160a01b031663d39e60438361268b610557565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af41580156126e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061270491906131eb565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015612749573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061276d9190612e5b565b92915050565b61277b61291d565b600061278f6001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03861660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa1580156127de573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526128069190810190613119565b915061281d82604001518460ff9081169116141590565b1561286157608082015160408084015190516304081d4960e41b81526001600160a01b03909216600483015260ff8086166024840152166044820152606401610838565b61286e8260200151612877565b90509250929050565b600061288b6001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03841660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa1580156128da573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526129029190810190613119565b6080015192915050565b61291461194c565b610e9f816125ee565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b60006020828403121561296d57600080fd5b81356001600160e01b03198116811461298557600080fd5b9392505050565b80356001600160c01b0319811681146129a457600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156129e1576129e16129a9565b60405290565b60405160e081016001600160401b03811182821017156129e1576129e16129a9565b60405161010081016001600160401b03811182821017156129e1576129e16129a9565b604051601f8201601f191681016001600160401b0381118282101715612a5457612a546129a9565b604052919050565b60006001600160401b03821115612a7557612a756129a9565b50601f01601f191660200190565b600082601f830112612a9457600080fd5b8135612aa7612aa282612a5c565b612a2c565b818152846020838601011115612abc57600080fd5b816020850160208301376000918101602001919091529392505050565b60008060408385031215612aec57600080fd5b612af58361298c565b915060208301356001600160401b03811115612b1057600080fd5b612b1c85828601612a83565b9150509250929050565b60005b83811015612b41578181015183820152602001612b29565b50506000910152565b60008151808452612b62816020860160208601612b26565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a0830151612bdf60c08401826001600160a01b03169052565b5060c083015160e080840152612bf9610100840182612b4a565b949350505050565b6001600160a01b0381168114610e9f57600080fd5b6001600160601b0381168114610e9f57600080fd5b60ff81168114610e9f57600080fd5b8015158114610e9f57600080fd5b60008060008060008060c08789031215612c6157600080fd5b8635612c6c81612c01565b95506020870135612c7c81612c16565b94506040870135612c8c81612c2b565b93506060870135612c9c81612c3a565b92506080870135612cac81612c01565b915060a08701356001600160401b03811115612cc757600080fd5b612cd389828a01612a83565b9150509295509295509295565b600060208284031215612cf257600080fd5b81356001600160401b03811115612d0857600080fd5b612bf984828501612a83565b600060208284031215612d2657600080fd5b813561298581612c01565b60008060408385031215612d4457600080fd5b8235612af581612c01565b60008060408385031215612d6257600080fd5b612d6b8361298c565b91506020830135612d7b81612c2b565b809150509250929050565b600080600060608486031215612d9b57600080fd5b8335612da681612c01565b92506020840135612db681612c01565b91506040840135612dc681612c01565b809150509250925092565b600060408284031215612de357600080fd5b612deb6129bf565b9050813581526020820135602082015292915050565b60008060808385031215612e1457600080fd5b612e1e8484612dd1565b915061286e8460408501612dd1565b60008060408385031215612e4057600080fd5b8235612e4b81612c01565b91506020830135612d7b81612c01565b600060208284031215612e6d57600080fd5b815161298581612c01565b6001600160601b0381511682526000602082015160406020850152612bf96040850182612b4a565b6001600160401b0360c01b83168152604060208201526000612bf96040830184612e78565b600060208284031215612ed757600080fd5b815162ffffff8116811461298557600080fd5b600181811c90821680612efe57607f821691505b602082108103612f1e57634e487b7160e01b600052602260045260246000fd5b50919050565b80516129a481612c3a565b600060208284031215612f4157600080fd5b815161298581612c3a565b80516129a481612c16565b600060208284031215612f6957600080fd5b815161298581612c16565b601f82111561138357600081815260208120601f850160051c81016020861015612f9b5750805b601f850160051c820191505b81811015612fba57828155600101612fa7565b505050505050565b81516001600160401b03811115612fdb57612fdb6129a9565b612fef81612fe98454612eea565b84612f74565b602080601f831160018114613024576000841561300c5750858301515b600019600386901b1c1916600185901b178555612fba565b600085815260208120601f198616915b8281101561305357888601518255948401946001909101908401613034565b50858210156130715787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160401b0381168114610e9f57600080fd5b6000602082840312156130a857600080fd5b815161298581613081565b80516129a481612c2b565b80516129a481612c01565b60006130d7612aa284612a5c565b90508281528383830111156130eb57600080fd5b612985836020830184612b26565b600082601f83011261310a57600080fd5b612985838351602085016130c9565b60006020828403121561312b57600080fd5b81516001600160401b038082111561314257600080fd5b9083019060e0828603121561315657600080fd5b61315e6129e7565b61316783612f4c565b815261317560208401612f4c565b6020820152613186604084016130b3565b604082015261319760608401612f24565b60608201526131a8608084016130be565b60808201526131b960a084016130be565b60a082015260c0830151828111156131d057600080fd5b6131dc878286016130f9565b60c08301525095945050505050565b6000602082840312156131fd57600080fd5b815161298581612c2b565b60006020828403121561321a57600080fd5b81516001600160401b038082111561323157600080fd5b908301906040828603121561324557600080fd5b61324d6129bf565b825161325881612c16565b815260208301518281111561326c57600080fd5b613278878286016130f9565b60208301525095945050505050565b6001600160401b0360c01b841681526060602082015260006132ac6060830185612e78565b905060ff83166040830152949350505050565b6000604082840312156132d157600080fd5b6132d96129bf565b9050815181526020820151602082015292915050565b6000610140828403121561330257600080fd5b61330a612a09565b613313836130be565b8152613321602084016130be565b602082015261333260408401612f4c565b604082015261334360608401612f4c565b606082015261335584608085016132bf565b60808201526133678460c085016132bf565b60a08201526133796101008401612f24565b60c082015261338b61012084016130be565b60e08201529392505050565b60018060a01b038082511683528060208301511660208401525060408101516001600160601b038082166040850152806060840151166060850152505060808101516133f0608084018280518252602090810151910152565b5060a0810151805160c0840152602081015160e08401525060c0810151151561010083015260e001516001600160a01b031661012090910152565b6001600160601b038416815261018081016134496020830185613397565b60ff8316610160830152949350505050565b6001600160601b038316815261016081016129856020830184613397565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156134a157600080fd5b81516001600160401b038111156134b757600080fd5b8201601f810184136134c857600080fd5b612bf9848251602084016130c9565b600081518084526020808501945080840160005b838110156135105781516001600160401b0316875295820195908201906001016134eb565b509495945050505050565b6001600160601b03861681526000602060018060a01b0387168184015260a0604084015261354c60a0840187612b4a565b8381036060850152855180825282820190600581901b830184018489016000805b848110156135ca57868403601f19018652825180518086529089019089860190845b818110156135b55783516001600160e01b0319168352928b0192918b019160010161358f565b5050968901969450509187019160010161356d565b50505086810360808801526135df81896134d7565b9c9b505050505050505050505050565b6000806040838503121561360257600080fd5b825161360d81612c01565b6020840151909250612d7b81612c0156fe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a264697066735822122004213298b729260f08108b184096f7178b8b724febadaadeb31a8f738c76e86464736f6c63430008140033",
776
+ "linkReferences": {
777
+ "contracts/types/NftId.sol": {
778
+ "NftIdLib": [
779
+ {
780
+ "length": 20,
781
+ "start": 2200
782
+ },
783
+ {
784
+ "length": 20,
785
+ "start": 4404
786
+ }
787
+ ]
788
+ },
789
+ "contracts/types/RoleId.sol": {
790
+ "RoleIdLib": [
791
+ {
792
+ "length": 20,
793
+ "start": 6796
794
+ }
795
+ ]
796
+ },
797
+ "contracts/types/Version.sol": {
798
+ "VersionLib": [
799
+ {
800
+ "length": 20,
801
+ "start": 1636
802
+ },
803
+ {
804
+ "length": 20,
805
+ "start": 2853
806
+ },
807
+ {
808
+ "length": 20,
809
+ "start": 9625
810
+ },
811
+ {
812
+ "length": 20,
813
+ "start": 10124
814
+ }
815
+ ],
816
+ "VersionPartLib": [
817
+ {
818
+ "length": 20,
819
+ "start": 4884
820
+ }
821
+ ]
822
+ }
823
+ },
824
+ "deployedLinkReferences": {
825
+ "contracts/types/NftId.sol": {
826
+ "NftIdLib": [
827
+ {
828
+ "length": 20,
829
+ "start": 1970
830
+ },
831
+ {
832
+ "length": 20,
833
+ "start": 4174
834
+ }
835
+ ]
836
+ },
837
+ "contracts/types/RoleId.sol": {
838
+ "RoleIdLib": [
839
+ {
840
+ "length": 20,
841
+ "start": 6566
842
+ }
843
+ ]
844
+ },
845
+ "contracts/types/Version.sol": {
846
+ "VersionLib": [
847
+ {
848
+ "length": 20,
849
+ "start": 1406
850
+ },
851
+ {
852
+ "length": 20,
853
+ "start": 2623
854
+ },
855
+ {
856
+ "length": 20,
857
+ "start": 9395
858
+ },
859
+ {
860
+ "length": 20,
861
+ "start": 9894
862
+ }
863
+ ],
864
+ "VersionPartLib": [
865
+ {
866
+ "length": 20,
867
+ "start": 4654
868
+ }
869
+ ]
870
+ }
871
+ }
872
+ }