@etherisc/gif-next 0.0.2-f824182-503 → 0.0.2-f831797-539

Sign up to get free protection for your applications and to get access to all the features.
Files changed (461) hide show
  1. package/README.md +411 -8
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
  3. package/artifacts/contracts/components/Component.sol/Component.json +644 -35
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +1301 -0
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → components/IComponent.sol/IComponent.json} +271 -236
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +851 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +936 -0
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +712 -0
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +1143 -133
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +950 -157
  18. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  19. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +783 -0
  20. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  21. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
  22. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  23. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1599 -798
  24. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  25. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +509 -0
  26. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  27. package/artifacts/contracts/instance/Instance.sol/Instance.json +2341 -875
  28. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  29. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +984 -0
  30. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  31. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1284 -0
  32. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  33. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1046 -0
  34. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  35. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +693 -0
  36. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  37. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
  38. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  39. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +552 -0
  40. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  41. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
  42. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  43. package/artifacts/contracts/instance/{lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
  44. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  45. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +532 -0
  46. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  47. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +194 -0
  48. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  49. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
  50. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  51. package/artifacts/contracts/instance/{access/IAccess.sol/IAccess.json → module/IBundle.sol/IBundle.json} +2 -2
  52. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  53. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
  54. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  55. package/artifacts/contracts/instance/{component/IComponent.sol/IComponent.json → module/IDistribution.sol/IDistribution.json} +2 -2
  56. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  57. package/artifacts/contracts/instance/{policy → module}/IPolicy.sol/IPolicy.json +1 -1
  58. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  59. package/artifacts/contracts/instance/{pool/IPoolModule.sol/IPool.json → module/IRisk.sol/IRisk.json} +2 -2
  60. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  61. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.json +10 -0
  62. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  63. package/artifacts/contracts/instance/{treasury → module}/ITreasury.sol/ITreasury.json +1 -1
  64. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  65. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +968 -0
  66. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  67. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +665 -0
  68. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  69. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1093 -0
  70. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  71. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +661 -0
  72. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  73. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +754 -0
  74. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  75. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +637 -0
  76. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  77. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1724 -0
  78. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  79. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +801 -0
  80. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  81. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +556 -0
  82. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  83. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +630 -0
  84. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  85. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +409 -0
  86. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  87. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +1013 -0
  88. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  89. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +540 -0
  90. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  91. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +428 -0
  92. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  93. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +384 -0
  94. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  95. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1021 -0
  96. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +689 -0
  98. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  99. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +816 -0
  100. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  101. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +653 -0
  102. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  103. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +777 -0
  104. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +649 -0
  106. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  107. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +239 -2
  108. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  109. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +578 -29
  110. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  111. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +890 -0
  112. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  113. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  114. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  115. package/artifacts/contracts/registry/Registry.sol/Registry.json +651 -68
  116. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  117. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  118. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  119. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1177 -0
  120. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  121. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +670 -0
  122. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  123. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  124. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  125. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +498 -0
  126. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  127. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  128. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  129. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +73 -0
  130. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  131. package/artifacts/contracts/{registry/Registry.sol/Registerable.json → shared/INftOwnable.sol/INftOwnable.json} +46 -74
  132. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  133. package/artifacts/contracts/{instance/product/IProductService.sol/IProductService.json → shared/IPolicyHolder.sol/IPolicyHolder.json} +68 -66
  134. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  135. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +188 -0
  136. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  137. package/artifacts/contracts/{registry/IRegistry.sol → shared/IRegistryLinked.sol}/IRegistryLinked.json +18 -19
  138. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  139. package/artifacts/contracts/shared/IService.sol/IService.json +269 -0
  140. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  141. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -0
  142. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  143. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +251 -0
  144. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  145. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
  146. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  147. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +582 -0
  148. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  149. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +352 -0
  150. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  151. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
  152. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  153. package/artifacts/contracts/shared/Service.sol/Service.json +425 -0
  154. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  155. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  156. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  157. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  158. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  159. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -0
  160. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
  161. package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
  162. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
  163. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +383 -0
  164. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
  165. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
  166. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
  167. package/artifacts/contracts/test/TestService.sol/TestService.json +521 -0
  168. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
  169. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +376 -0
  170. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
  171. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
  172. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
  173. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +104 -0
  174. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  175. package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
  176. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  177. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
  178. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  179. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  180. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +2 -2
  182. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  183. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +100 -0
  184. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  185. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  186. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  187. package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
  188. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  189. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
  190. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  191. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +78 -4
  192. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  193. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +33 -0
  194. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  195. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  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 +4 -0
  201. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +142 -0
  202. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  203. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  204. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  205. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
  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 +97 -4
  212. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  213. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  214. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  215. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
  216. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
  217. package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
  218. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
  219. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +49 -0
  220. package/contracts/components/Component.sol +215 -51
  221. package/contracts/components/Distribution.sol +280 -0
  222. package/contracts/components/IComponent.sol +74 -0
  223. package/contracts/components/IDistributionComponent.sol +71 -0
  224. package/contracts/components/IPoolComponent.sol +113 -0
  225. package/contracts/components/IProductComponent.sol +40 -0
  226. package/contracts/components/Pool.sol +277 -30
  227. package/contracts/components/Product.sol +252 -48
  228. package/contracts/instance/BundleManager.sol +127 -0
  229. package/contracts/instance/Cloneable.sol +46 -0
  230. package/contracts/instance/IInstance.sol +92 -24
  231. package/contracts/instance/IInstanceService.sol +60 -0
  232. package/contracts/instance/Instance.sol +274 -51
  233. package/contracts/instance/InstanceAccessManager.sol +297 -0
  234. package/contracts/instance/InstanceReader.sol +294 -0
  235. package/contracts/instance/InstanceService.sol +489 -0
  236. package/contracts/instance/InstanceServiceManager.sol +54 -0
  237. package/contracts/instance/ObjectManager.sol +84 -0
  238. package/contracts/instance/base/ComponentService.sol +134 -0
  239. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  240. package/contracts/instance/base/ILifecycle.sol +30 -0
  241. package/contracts/instance/base/KeyValueStore.sol +175 -0
  242. package/contracts/instance/base/Lifecycle.sol +109 -0
  243. package/contracts/instance/module/IAccess.sol +47 -0
  244. package/contracts/instance/module/IBundle.sol +21 -0
  245. package/contracts/instance/module/IComponents.sol +35 -0
  246. package/contracts/instance/module/IDistribution.sol +41 -0
  247. package/contracts/instance/module/IPolicy.sol +72 -0
  248. package/contracts/instance/module/IRisk.sol +11 -0
  249. package/contracts/instance/module/ISetup.sol +33 -0
  250. package/contracts/instance/module/ITreasury.sol +23 -0
  251. package/contracts/instance/service/ApplicationService.sol +350 -0
  252. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  253. package/contracts/instance/service/BundleService.sol +336 -0
  254. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  255. package/contracts/instance/service/ClaimService.sol +151 -0
  256. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  257. package/contracts/instance/service/DistributionService.sol +450 -0
  258. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  259. package/contracts/instance/service/IApplicationService.sol +82 -0
  260. package/contracts/instance/service/IBundleService.sol +62 -0
  261. package/contracts/instance/service/IClaimService.sol +61 -0
  262. package/contracts/instance/service/IDistributionService.sol +98 -0
  263. package/contracts/instance/service/IPolicyService.sol +72 -0
  264. package/contracts/instance/service/IPoolService.sol +35 -0
  265. package/contracts/instance/service/IProductService.sol +40 -0
  266. package/contracts/instance/service/PolicyService.sol +403 -0
  267. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  268. package/contracts/instance/service/PoolService.sol +163 -0
  269. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  270. package/contracts/instance/service/ProductService.sol +233 -0
  271. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  272. package/contracts/registry/ChainNft.sol +129 -62
  273. package/contracts/registry/IRegistry.sol +73 -41
  274. package/contracts/registry/IRegistryService.sol +67 -0
  275. package/contracts/registry/ITransferInterceptor.sol +6 -0
  276. package/contracts/registry/Registry.sol +408 -126
  277. package/contracts/registry/RegistryAccessManager.sol +216 -0
  278. package/contracts/registry/RegistryService.sol +283 -0
  279. package/contracts/registry/RegistryServiceManager.sol +62 -0
  280. package/contracts/registry/ReleaseManager.sol +322 -0
  281. package/contracts/registry/TokenRegistry.sol +116 -0
  282. package/contracts/shared/ContractDeployerLib.sol +72 -0
  283. package/contracts/shared/ERC165.sol +27 -0
  284. package/contracts/shared/INftOwnable.sol +23 -0
  285. package/contracts/shared/IPolicyHolder.sol +26 -0
  286. package/contracts/shared/IRegisterable.sol +15 -0
  287. package/contracts/shared/IRegistryLinked.sol +12 -0
  288. package/contracts/shared/IService.sol +18 -0
  289. package/contracts/shared/IVersionable.sol +53 -0
  290. package/contracts/shared/NftOwnable.sol +120 -0
  291. package/contracts/shared/PolicyHolder.sol +81 -0
  292. package/contracts/shared/ProxyManager.sol +169 -0
  293. package/contracts/shared/Registerable.sol +74 -0
  294. package/contracts/shared/RegistryLinked.sol +48 -0
  295. package/contracts/shared/Service.sol +58 -0
  296. package/contracts/shared/TokenHandler.sol +33 -0
  297. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  298. package/contracts/shared/Versionable.sol +59 -0
  299. package/contracts/test/TestFee.sol +25 -0
  300. package/contracts/test/TestRegisterable.sol +18 -0
  301. package/contracts/test/TestRoleId.sol +14 -0
  302. package/contracts/test/TestService.sol +25 -0
  303. package/contracts/test/TestToken.sol +26 -0
  304. package/contracts/test/TestVersion.sol +44 -0
  305. package/contracts/test/TestVersionable.sol +17 -0
  306. package/contracts/test/Usdc.sol +26 -0
  307. package/contracts/types/AddressSet.sol +58 -0
  308. package/contracts/types/Blocknumber.sol +1 -0
  309. package/contracts/types/ClaimId.sol +52 -0
  310. package/contracts/types/DistributorType.sol +55 -0
  311. package/contracts/types/Fee.sol +45 -20
  312. package/contracts/types/Key32.sol +50 -0
  313. package/contracts/types/NftId.sol +30 -1
  314. package/contracts/types/NftIdSet.sol +62 -0
  315. package/contracts/types/NumberId.sol +52 -0
  316. package/contracts/types/ObjectType.sol +65 -15
  317. package/contracts/types/PayoutId.sol +54 -0
  318. package/contracts/types/Referral.sol +89 -0
  319. package/contracts/types/RiskId.sol +43 -0
  320. package/contracts/types/RoleId.sol +95 -0
  321. package/contracts/types/Seconds.sol +54 -0
  322. package/contracts/types/StateId.sol +19 -4
  323. package/contracts/types/Timestamp.sol +31 -6
  324. package/contracts/types/UFixed.sol +151 -31
  325. package/contracts/types/Version.sol +108 -0
  326. package/package.json +14 -5
  327. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
  328. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
  329. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
  330. package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +0 -255
  331. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
  332. package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -74
  333. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  334. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  335. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  336. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  337. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  338. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  339. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  340. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  341. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  342. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  343. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  344. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  345. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  346. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  347. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  348. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  349. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  350. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +0 -50
  351. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  352. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  353. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  354. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  355. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  356. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  357. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  358. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  359. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  360. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  361. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  362. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  363. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  364. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  365. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  366. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  367. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
  368. package/artifacts/contracts/instance/access/Access.sol/AccessModule.json +0 -400
  369. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
  370. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
  371. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
  372. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
  373. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
  374. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  375. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +0 -336
  376. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  377. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.json +0 -299
  378. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
  379. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -202
  380. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
  381. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
  382. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +0 -205
  383. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  384. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -217
  385. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
  386. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -141
  387. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
  388. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +0 -24
  389. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  390. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
  391. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
  392. package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
  393. package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
  394. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  395. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  396. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +0 -254
  397. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  398. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +0 -254
  399. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  400. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  401. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +0 -129
  402. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  403. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +0 -155
  404. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
  405. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
  406. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
  407. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
  408. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +0 -75
  409. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
  410. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -196
  411. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  412. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  413. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.json +0 -490
  414. package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  415. package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.json +0 -45
  416. package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  417. package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.json +0 -490
  418. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  419. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
  420. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +0 -24
  421. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
  422. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +0 -166
  423. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
  424. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
  425. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
  426. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
  427. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  428. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -453
  429. package/contracts/components/IPool.sol +0 -15
  430. package/contracts/components/IProduct.sol +0 -16
  431. package/contracts/experiment/errors/Require.sol +0 -38
  432. package/contracts/experiment/errors/Revert.sol +0 -44
  433. package/contracts/experiment/inheritance/A.sol +0 -53
  434. package/contracts/experiment/inheritance/B.sol +0 -28
  435. package/contracts/experiment/inheritance/C.sol +0 -34
  436. package/contracts/experiment/inheritance/IA.sol +0 -13
  437. package/contracts/experiment/inheritance/IB.sol +0 -10
  438. package/contracts/experiment/inheritance/IC.sol +0 -12
  439. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  440. package/contracts/experiment/statemachine/ISM.sol +0 -25
  441. package/contracts/experiment/statemachine/README.md +0 -112
  442. package/contracts/experiment/statemachine/SM.sol +0 -57
  443. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  444. package/contracts/experiment/types/TypeA.sol +0 -47
  445. package/contracts/experiment/types/TypeB.sol +0 -29
  446. package/contracts/instance/access/Access.sol +0 -165
  447. package/contracts/instance/access/IAccess.sol +0 -63
  448. package/contracts/instance/component/ComponentModule.sol +0 -274
  449. package/contracts/instance/component/IComponent.sol +0 -74
  450. package/contracts/instance/lifecycle/ILifecycle.sol +0 -47
  451. package/contracts/instance/lifecycle/LifecycleModule.sol +0 -88
  452. package/contracts/instance/policy/IPolicy.sol +0 -50
  453. package/contracts/instance/policy/PolicyModule.sol +0 -114
  454. package/contracts/instance/pool/IPoolModule.sol +0 -23
  455. package/contracts/instance/pool/PoolModule.sol +0 -81
  456. package/contracts/instance/product/IProductService.sol +0 -36
  457. package/contracts/instance/product/ProductService.sol +0 -136
  458. package/contracts/instance/treasury/ITreasury.sol +0 -91
  459. package/contracts/instance/treasury/TokenHandler.sol +0 -24
  460. package/contracts/instance/treasury/TreasuryModule.sol +0 -168
  461. package/contracts/registry/IChainNft.sol +0 -21
@@ -0,0 +1,783 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "BundleManager",
4
+ "sourceName": "contracts/instance/BundleManager.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": "registry",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "CloneableRegistryInvalid",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "NftId",
59
+ "name": "bundleNftId",
60
+ "type": "uint96"
61
+ },
62
+ {
63
+ "internalType": "NftId",
64
+ "name": "policyNftId",
65
+ "type": "uint96"
66
+ }
67
+ ],
68
+ "name": "ErrorBundleManagerBundleLocked",
69
+ "type": "error"
70
+ },
71
+ {
72
+ "inputs": [
73
+ {
74
+ "internalType": "NftId",
75
+ "name": "bundleNftId",
76
+ "type": "uint96"
77
+ }
78
+ ],
79
+ "name": "ErrorBundleManagerBundleNotRegistered",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "NftId",
86
+ "name": "bundleNftId",
87
+ "type": "uint96"
88
+ }
89
+ ],
90
+ "name": "ErrorBundleManagerBundleUnknown",
91
+ "type": "error"
92
+ },
93
+ {
94
+ "inputs": [
95
+ {
96
+ "internalType": "NftId",
97
+ "name": "policyNftId",
98
+ "type": "uint96"
99
+ }
100
+ ],
101
+ "name": "ErrorBundleManagerPolicyAlreadyActivated",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "inputs": [
106
+ {
107
+ "internalType": "NftId",
108
+ "name": "policyNftId",
109
+ "type": "uint96"
110
+ }
111
+ ],
112
+ "name": "ErrorBundleManagerPolicyNotCloseable",
113
+ "type": "error"
114
+ },
115
+ {
116
+ "inputs": [
117
+ {
118
+ "internalType": "NftId",
119
+ "name": "policyNftId",
120
+ "type": "uint96"
121
+ },
122
+ {
123
+ "internalType": "uint256",
124
+ "name": "openClaimsCount",
125
+ "type": "uint256"
126
+ }
127
+ ],
128
+ "name": "ErrorBundleManagerPolicyWithOpenClaims",
129
+ "type": "error"
130
+ },
131
+ {
132
+ "inputs": [
133
+ {
134
+ "internalType": "NftId",
135
+ "name": "componentNftId",
136
+ "type": "uint96"
137
+ },
138
+ {
139
+ "internalType": "NftId",
140
+ "name": "objectNftId",
141
+ "type": "uint96"
142
+ }
143
+ ],
144
+ "name": "ErrorObjectManagerAlreadyAdded",
145
+ "type": "error"
146
+ },
147
+ {
148
+ "inputs": [
149
+ {
150
+ "internalType": "NftId",
151
+ "name": "instanceNftId",
152
+ "type": "uint96"
153
+ }
154
+ ],
155
+ "name": "ErrorObjectManagerNftIdInvalid",
156
+ "type": "error"
157
+ },
158
+ {
159
+ "inputs": [],
160
+ "name": "InvalidInitialization",
161
+ "type": "error"
162
+ },
163
+ {
164
+ "inputs": [],
165
+ "name": "NotInitializing",
166
+ "type": "error"
167
+ },
168
+ {
169
+ "anonymous": false,
170
+ "inputs": [
171
+ {
172
+ "indexed": false,
173
+ "internalType": "address",
174
+ "name": "authority",
175
+ "type": "address"
176
+ }
177
+ ],
178
+ "name": "AuthorityUpdated",
179
+ "type": "event"
180
+ },
181
+ {
182
+ "anonymous": false,
183
+ "inputs": [
184
+ {
185
+ "indexed": false,
186
+ "internalType": "address",
187
+ "name": "authority",
188
+ "type": "address"
189
+ },
190
+ {
191
+ "indexed": false,
192
+ "internalType": "address",
193
+ "name": "registry",
194
+ "type": "address"
195
+ }
196
+ ],
197
+ "name": "CloneableInitialized",
198
+ "type": "event"
199
+ },
200
+ {
201
+ "anonymous": false,
202
+ "inputs": [
203
+ {
204
+ "indexed": false,
205
+ "internalType": "uint64",
206
+ "name": "version",
207
+ "type": "uint64"
208
+ }
209
+ ],
210
+ "name": "Initialized",
211
+ "type": "event"
212
+ },
213
+ {
214
+ "anonymous": false,
215
+ "inputs": [
216
+ {
217
+ "indexed": false,
218
+ "internalType": "NftId",
219
+ "name": "poolNftId",
220
+ "type": "uint96"
221
+ },
222
+ {
223
+ "indexed": false,
224
+ "internalType": "NftId",
225
+ "name": "bundleNftId",
226
+ "type": "uint96"
227
+ }
228
+ ],
229
+ "name": "LogBundleManagerBundleAdded",
230
+ "type": "event"
231
+ },
232
+ {
233
+ "anonymous": false,
234
+ "inputs": [
235
+ {
236
+ "indexed": false,
237
+ "internalType": "NftId",
238
+ "name": "poolNftId",
239
+ "type": "uint96"
240
+ },
241
+ {
242
+ "indexed": false,
243
+ "internalType": "NftId",
244
+ "name": "bundleNftId",
245
+ "type": "uint96"
246
+ }
247
+ ],
248
+ "name": "LogBundleManagerBundleClosed",
249
+ "type": "event"
250
+ },
251
+ {
252
+ "anonymous": false,
253
+ "inputs": [
254
+ {
255
+ "indexed": false,
256
+ "internalType": "NftId",
257
+ "name": "poolNftId",
258
+ "type": "uint96"
259
+ },
260
+ {
261
+ "indexed": false,
262
+ "internalType": "NftId",
263
+ "name": "bundleNftId",
264
+ "type": "uint96"
265
+ }
266
+ ],
267
+ "name": "LogBundleManagerBundleLocked",
268
+ "type": "event"
269
+ },
270
+ {
271
+ "anonymous": false,
272
+ "inputs": [
273
+ {
274
+ "indexed": false,
275
+ "internalType": "NftId",
276
+ "name": "poolNftId",
277
+ "type": "uint96"
278
+ },
279
+ {
280
+ "indexed": false,
281
+ "internalType": "NftId",
282
+ "name": "bundleNftId",
283
+ "type": "uint96"
284
+ }
285
+ ],
286
+ "name": "LogBundleManagerBundleUnlocked",
287
+ "type": "event"
288
+ },
289
+ {
290
+ "anonymous": false,
291
+ "inputs": [
292
+ {
293
+ "indexed": false,
294
+ "internalType": "NftId",
295
+ "name": "bundleNftId",
296
+ "type": "uint96"
297
+ },
298
+ {
299
+ "indexed": false,
300
+ "internalType": "NftId",
301
+ "name": "policyNftId",
302
+ "type": "uint96"
303
+ }
304
+ ],
305
+ "name": "LogBundleManagerPolicyLinked",
306
+ "type": "event"
307
+ },
308
+ {
309
+ "anonymous": false,
310
+ "inputs": [
311
+ {
312
+ "indexed": false,
313
+ "internalType": "NftId",
314
+ "name": "bundleNftId",
315
+ "type": "uint96"
316
+ },
317
+ {
318
+ "indexed": false,
319
+ "internalType": "NftId",
320
+ "name": "policyNftId",
321
+ "type": "uint96"
322
+ }
323
+ ],
324
+ "name": "LogBundleManagerPolicyUnlinked",
325
+ "type": "event"
326
+ },
327
+ {
328
+ "anonymous": false,
329
+ "inputs": [
330
+ {
331
+ "indexed": false,
332
+ "internalType": "address",
333
+ "name": "instance",
334
+ "type": "address"
335
+ }
336
+ ],
337
+ "name": "LogObjectManagerInitialized",
338
+ "type": "event"
339
+ },
340
+ {
341
+ "inputs": [
342
+ {
343
+ "internalType": "NftId",
344
+ "name": "poolNftId",
345
+ "type": "uint96"
346
+ }
347
+ ],
348
+ "name": "activeBundles",
349
+ "outputs": [
350
+ {
351
+ "internalType": "uint256",
352
+ "name": "",
353
+ "type": "uint256"
354
+ }
355
+ ],
356
+ "stateMutability": "view",
357
+ "type": "function"
358
+ },
359
+ {
360
+ "inputs": [
361
+ {
362
+ "internalType": "NftId",
363
+ "name": "bundleNftId",
364
+ "type": "uint96"
365
+ }
366
+ ],
367
+ "name": "activePolicies",
368
+ "outputs": [
369
+ {
370
+ "internalType": "uint256",
371
+ "name": "",
372
+ "type": "uint256"
373
+ }
374
+ ],
375
+ "stateMutability": "view",
376
+ "type": "function"
377
+ },
378
+ {
379
+ "inputs": [
380
+ {
381
+ "internalType": "NftId",
382
+ "name": "bundleNftId",
383
+ "type": "uint96"
384
+ }
385
+ ],
386
+ "name": "add",
387
+ "outputs": [],
388
+ "stateMutability": "nonpayable",
389
+ "type": "function"
390
+ },
391
+ {
392
+ "inputs": [],
393
+ "name": "authority",
394
+ "outputs": [
395
+ {
396
+ "internalType": "address",
397
+ "name": "",
398
+ "type": "address"
399
+ }
400
+ ],
401
+ "stateMutability": "view",
402
+ "type": "function"
403
+ },
404
+ {
405
+ "inputs": [
406
+ {
407
+ "internalType": "NftId",
408
+ "name": "poolNftId",
409
+ "type": "uint96"
410
+ }
411
+ ],
412
+ "name": "bundles",
413
+ "outputs": [
414
+ {
415
+ "internalType": "uint256",
416
+ "name": "",
417
+ "type": "uint256"
418
+ }
419
+ ],
420
+ "stateMutability": "view",
421
+ "type": "function"
422
+ },
423
+ {
424
+ "inputs": [
425
+ {
426
+ "internalType": "NftId",
427
+ "name": "poolNftId",
428
+ "type": "uint96"
429
+ },
430
+ {
431
+ "internalType": "uint256",
432
+ "name": "idx",
433
+ "type": "uint256"
434
+ }
435
+ ],
436
+ "name": "getActiveBundleNftId",
437
+ "outputs": [
438
+ {
439
+ "internalType": "NftId",
440
+ "name": "bundleNftId",
441
+ "type": "uint96"
442
+ }
443
+ ],
444
+ "stateMutability": "view",
445
+ "type": "function"
446
+ },
447
+ {
448
+ "inputs": [
449
+ {
450
+ "internalType": "NftId",
451
+ "name": "bundleNftId",
452
+ "type": "uint96"
453
+ },
454
+ {
455
+ "internalType": "uint256",
456
+ "name": "idx",
457
+ "type": "uint256"
458
+ }
459
+ ],
460
+ "name": "getActivePolicy",
461
+ "outputs": [
462
+ {
463
+ "internalType": "NftId",
464
+ "name": "policyNftId",
465
+ "type": "uint96"
466
+ }
467
+ ],
468
+ "stateMutability": "view",
469
+ "type": "function"
470
+ },
471
+ {
472
+ "inputs": [
473
+ {
474
+ "internalType": "NftId",
475
+ "name": "poolNftId",
476
+ "type": "uint96"
477
+ },
478
+ {
479
+ "internalType": "uint256",
480
+ "name": "idx",
481
+ "type": "uint256"
482
+ }
483
+ ],
484
+ "name": "getBundleNftId",
485
+ "outputs": [
486
+ {
487
+ "internalType": "NftId",
488
+ "name": "bundleNftId",
489
+ "type": "uint96"
490
+ }
491
+ ],
492
+ "stateMutability": "view",
493
+ "type": "function"
494
+ },
495
+ {
496
+ "inputs": [],
497
+ "name": "getInstance",
498
+ "outputs": [
499
+ {
500
+ "internalType": "contract IInstance",
501
+ "name": "",
502
+ "type": "address"
503
+ }
504
+ ],
505
+ "stateMutability": "view",
506
+ "type": "function"
507
+ },
508
+ {
509
+ "inputs": [],
510
+ "name": "getRegistry",
511
+ "outputs": [
512
+ {
513
+ "internalType": "contract IRegistry",
514
+ "name": "",
515
+ "type": "address"
516
+ }
517
+ ],
518
+ "stateMutability": "view",
519
+ "type": "function"
520
+ },
521
+ {
522
+ "inputs": [
523
+ {
524
+ "internalType": "address",
525
+ "name": "authority",
526
+ "type": "address"
527
+ },
528
+ {
529
+ "internalType": "address",
530
+ "name": "registry",
531
+ "type": "address"
532
+ }
533
+ ],
534
+ "name": "initialize",
535
+ "outputs": [],
536
+ "stateMutability": "nonpayable",
537
+ "type": "function"
538
+ },
539
+ {
540
+ "inputs": [
541
+ {
542
+ "internalType": "address",
543
+ "name": "authority",
544
+ "type": "address"
545
+ },
546
+ {
547
+ "internalType": "address",
548
+ "name": "registry",
549
+ "type": "address"
550
+ },
551
+ {
552
+ "internalType": "address",
553
+ "name": "instance",
554
+ "type": "address"
555
+ }
556
+ ],
557
+ "name": "initialize",
558
+ "outputs": [],
559
+ "stateMutability": "nonpayable",
560
+ "type": "function"
561
+ },
562
+ {
563
+ "inputs": [],
564
+ "name": "isConsumingScheduledOp",
565
+ "outputs": [
566
+ {
567
+ "internalType": "bytes4",
568
+ "name": "",
569
+ "type": "bytes4"
570
+ }
571
+ ],
572
+ "stateMutability": "view",
573
+ "type": "function"
574
+ },
575
+ {
576
+ "inputs": [
577
+ {
578
+ "internalType": "NftId",
579
+ "name": "policyNftId",
580
+ "type": "uint96"
581
+ }
582
+ ],
583
+ "name": "linkPolicy",
584
+ "outputs": [],
585
+ "stateMutability": "nonpayable",
586
+ "type": "function"
587
+ },
588
+ {
589
+ "inputs": [
590
+ {
591
+ "internalType": "NftId",
592
+ "name": "bundleNftId",
593
+ "type": "uint96"
594
+ }
595
+ ],
596
+ "name": "lock",
597
+ "outputs": [],
598
+ "stateMutability": "nonpayable",
599
+ "type": "function"
600
+ },
601
+ {
602
+ "inputs": [
603
+ {
604
+ "internalType": "address",
605
+ "name": "newAuthority",
606
+ "type": "address"
607
+ }
608
+ ],
609
+ "name": "setAuthority",
610
+ "outputs": [],
611
+ "stateMutability": "nonpayable",
612
+ "type": "function"
613
+ },
614
+ {
615
+ "inputs": [
616
+ {
617
+ "internalType": "NftId",
618
+ "name": "policyNftId",
619
+ "type": "uint96"
620
+ }
621
+ ],
622
+ "name": "unlinkPolicy",
623
+ "outputs": [],
624
+ "stateMutability": "nonpayable",
625
+ "type": "function"
626
+ },
627
+ {
628
+ "inputs": [
629
+ {
630
+ "internalType": "NftId",
631
+ "name": "bundleNftId",
632
+ "type": "uint96"
633
+ }
634
+ ],
635
+ "name": "unlock",
636
+ "outputs": [],
637
+ "stateMutability": "nonpayable",
638
+ "type": "function"
639
+ }
640
+ ],
641
+ "bytecode": "0x608060405234801561001057600080fd5b50600080546001600160a01b0319169055611f30806100306000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80638fb36037116100a2578063bf7e214f11610071578063bf7e214f1461025f578063c0c53b8b14610267578063db70354c1461027a578063dbacaaaf1461028d578063de7b5d14146102a057600080fd5b80638fb360371461020557806394b9929b146102265780639a8fe67814610239578063b5346af51461024c57600080fd5b8063485cc955116100e9578063485cc9551461017c5780635ab1bd531461018f5780636ebed908146101b45780637a9e5e4b146101df5780638de1d14e146101f257600080fd5b806306fa45651461011b5780630cc7e6141461013057806313ab148d1461014357806345983a8a14610169575b600080fd5b61012e61012936600461186f565b6102b1565b005b61012e61013e36600461186f565b6103f8565b61015661015136600461186f565b6106fa565b6040519081526020015b60405180910390f35b61015661017736600461186f565b61070b565b61012e61018a3660046118a1565b610797565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610160565b6101c76101c23660046118da565b610939565b6040516001600160601b039091168152602001610160565b61012e6101ed366004611906565b61094c565b61012e61020036600461186f565b6109d3565b61020d610bb3565b6040516001600160e01b03199091168152602001610160565b61015661023436600461186f565b610bec565b61012e61024736600461186f565b610bf7565b61012e61025a36600461186f565b610ef3565b61019c61102e565b61012e610275366004611923565b61104a565b6101c76102883660046118da565b6110a2565b6101c761029b3660046118da565b6110ae565b6003546001600160a01b031661019c565b6102be335b600036611141565b600354604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa158015610308573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032c919061196e565b604051634793b4ab60e01b81526001600160601b03841660048201526001600160a01b039190911690634793b4ab90602401600060405180830381865afa15801561037b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103a39190810190611b0f565b5190506103b08183611247565b604080516001600160601b038084168252841660208201527f8481dca68853151d9f39783b09bf4144fd4fadcbf056b07e508ca3f873f2b89891015b60405180910390a15050565b610401336102b6565b600354604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa15801561044b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046f919061196e565b60405163bd7d9d8560e01b81526001600160601b03841660048201526001600160a01b03919091169063bd7d9d8590602401600060405180830381865afa1580156104be573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104e69190810190611c21565b6020015190506000600360009054906101000a90046001600160a01b03166001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610541573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610565919061196e565b604051634793b4ab60e01b81526001600160601b03841660048201526001600160a01b039190911690634793b4ab90602401600060405180830381865afa1580156105b4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105dc9190810190611b0f565b5190506105e981836112ca565b61061e57604051635f73b3b960e11b81526001600160601b038084166004830152841660248201526044015b60405180910390fd5b6001600160601b0382166000908152600460208190526040918290209151631461054360e31b815273__$0dc988b1672de335b826773df9015af2da$__9263a3082a1892610680928891019182526001600160601b0316602082015260400190565b60006040518083038186803b15801561069857600080fd5b505af41580156106ac573d6000803e3d6000fd5b5050604080516001600160601b038087168252871660208201527f5cb68c560151617390da8ac6298cbe334b6a6e27a8bdea1f03a939de82a59b2a93500190505b60405180910390a1505050565b60006107058261136d565b92915050565b6001600160601b03811660009081526004602081905260408083209051638b6233dd60e01b81529182015273__$0dc988b1672de335b826773df9015af2da$__90638b6233dd906024015b602060405180830381865af4158015610773573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107059190611d8e565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff166000811580156107dd5750825b905060008267ffffffffffffffff1660011480156107fa5750303b155b905081158015610808575080155b156108265760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561085057845460ff60401b1916600160401b1785555b610859876113be565b856001600160a01b03163b60000361088f5760405163071669cf60e21b81526001600160a01b0387166004820152602401610615565b600080546001600160a01b0319166001600160a01b0388811691821790925560408051928a16835260208301919091527fa6804c76412ae2d729353ed187a48b0b95177ee5c111049b80878fd127224412910160405180910390a1831561093057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b600061094583836113d2565b9392505050565b3361095561102e565b6001600160a01b0316816001600160a01b0316146109905760405162d1953b60e31b81526001600160a01b0382166004820152602401610615565b816001600160a01b03163b6000036109c6576040516361798f2f60e11b81526001600160a01b0383166004820152602401610615565b6109cf8261142a565b5050565b6109dc336102b6565b600354604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa158015610a26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4a919061196e565b604051634793b4ab60e01b81526001600160601b03841660048201526001600160a01b039190911690634793b4ab90602401600060405180830381865afa158015610a99573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ac19190810190611b0f565b51604051630a4d29dd60e31b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906352694ee890602401602060405180830381865af4158015610b1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b419190611db7565b15610b6957604051620852e560e41b81526001600160601b0383166004820152602401610615565b610b738183611484565b604080516001600160601b038084168252841660208201527f559277c2e6b13df1c45b0a6a50bea96df5fc3499ee767963594bdd7cb5cc103591016103ec565b600080516020611edb833981519152805460009190600160a01b900460ff16610bdd576000610be6565b638fb3603760e01b5b91505090565b60006107058261158c565b610c00336102b6565b600354604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa158015610c4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6e919061196e565b60405163bd7d9d8560e01b81526001600160601b03841660048201526001600160a01b03919091169063bd7d9d8590602401600060405180830381865afa158015610cbd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ce59190810190611c21565b602080820151600354604080516302cd307160e01b8152905194955091936000936001600160a01b03909216926302cd30719260048083019391928290030181865afa158015610d39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5d919061196e565b604051634793b4ab60e01b81526001600160601b03841660048201526001600160a01b039190911690634793b4ab90602401600060405180830381865afa158015610dac573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610dd49190810190611b0f565b519050610de181836115dd565b610e09576040516352500dd960e01b81526001600160601b0383166004820152602401610615565b6001600160601b038216600090815260046020819052604091829020915163539eabab60e11b815273__$0dc988b1672de335b826773df9015af2da$__9263a73d575692610e6b928991019182526001600160601b0316602082015260400190565b60006040518083038186803b158015610e8357600080fd5b505af4158015610e97573d6000803e3d6000fd5b505050507fb0b509518a18f79abc72ff294f3a785a37721a790e8f0f53d8b991dac386102d836020015185604051610ee59291906001600160601b0392831681529116602082015260400190565b60405180910390a150505050565b610efc336102b6565b600354604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa158015610f46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6a919061196e565b604051634793b4ab60e01b81526001600160601b03841660048201526001600160a01b039190911690634793b4ab90602401600060405180830381865afa158015610fb9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fe19190810190611b0f565b519050610fee818361163f565b604080516001600160601b038084168252841660208201527fb153f926e58e76caa7d661713867b8f1bbfcbda82504931fab2dccc2610a98dd91016103ec565b600080516020611edb833981519152546001600160a01b031690565b6110548383610797565b600380546001600160a01b0319166001600160a01b0383169081179091556040519081527fe89455dcb69bf4efd41cbb10c8064808f360b87b03ae8c96349c71f4934ffa0f906020016106ed565b6000610945838361169a565b6001600160601b0382166000908152600460208190526040808320905163e797d89960e01b8152918201526024810183905273__$0dc988b1672de335b826773df9015af2da$__9063e797d899906044015b602060405180830381865af415801561111d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109459190611dd2565b600080516020611edb83398151915260008061117c61115e61102e565b873061116e600460008a8c611def565b61117791611e19565b6116f2565b915091508161123f5763ffffffff81161561121c57825460ff60a01b1916600160a01b1783556111aa61102e565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b81526004016111d993929190611e49565b600060405180830381600087803b1580156111f357600080fd5b505af1158015611207573d6000803e3d6000fd5b5050845460ff60a01b191685555061123f9050565b60405162d1953b60e31b81526001600160a01b0387166004820152602401610615565b505050505050565b6001600160601b03828116600090815260016020526040908190209051631461054360e31b81526004810191909152908216602482015273__$0dc988b1672de335b826773df9015af2da$__9063a3082a18906044015b60006040518083038186803b1580156112b657600080fd5b505af415801561123f573d6000803e3d6000fd5b6001600160601b0382166000908152600160205260408082209051632bfdd6b960e01b815273__$0dc988b1672de335b826773df9015af2da$__91632bfdd6b99161132c919086906004019182526001600160601b0316602082015260400190565b602060405180830381865af4158015611349573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109459190611db7565b6001600160601b0381166000908152600260205260408082209051638b6233dd60e01b8152600481019190915273__$0dc988b1672de335b826773df9015af2da$__90638b6233dd90602401610756565b6113c66117fe565b6113cf81611849565b50565b6001600160601b038216600090815260016020526040808220905163e797d89960e01b815260048101919091526024810183905273__$0dc988b1672de335b826773df9015af2da$__9063e797d89990604401611100565b600080516020611edb83398151915280546001600160a01b0319166001600160a01b03831690811782556040519081527f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad906020016103ec565b6001600160601b0382811660009081526002602090815260408083206001909252918290209151631461054360e31b81526004810182905292841660248401529173__$0dc988b1672de335b826773df9015af2da$__9063a3082a189060440160006040518083038186803b1580156114fc57600080fd5b505af4158015611510573d6000803e3d6000fd5b5050604051631461054360e31b8152600481018490526001600160601b038616602482015273__$0dc988b1672de335b826773df9015af2da$__925063a3082a18915060440160006040518083038186803b15801561156e57600080fd5b505af4158015611582573d6000803e3d6000fd5b5050505050505050565b6001600160601b0381166000908152600160205260408082209051638b6233dd60e01b8152600481019190915273__$0dc988b1672de335b826773df9015af2da$__90638b6233dd90602401610756565b6001600160601b0382166000908152600260205260408082209051632bfdd6b960e01b815273__$0dc988b1672de335b826773df9015af2da$__91632bfdd6b99161132c919086906004019182526001600160601b0316602082015260400190565b6001600160601b0382811660009081526001602052604090819020905163539eabab60e11b81526004810191909152908216602482015273__$0dc988b1672de335b826773df9015af2da$__9063a73d57569060440161129e565b6001600160601b038216600090815260026020526040808220905163e797d89960e01b815260048101919091526024810183905273__$0dc988b1672de335b826773df9015af2da$__9063e797d89990604401611100565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b179052516117619190611e89565b600060405180830381855afa9150503d806000811461179c576040519150601f19603f3d011682016040523d82523d6000602084013e6117a1565b606091505b509150915081156117f35760408151106117d357808060200190518101906117c99190611ea5565b90945092506117f3565b60208151106117f357808060200190518101906117f09190611db7565b93505b505094509492505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661184757604051631afcd79f60e31b815260040160405180910390fd5b565b6118516117fe565b6113cf8161142a565b6001600160601b03811681146113cf57600080fd5b60006020828403121561188157600080fd5b81356109458161185a565b6001600160a01b03811681146113cf57600080fd5b600080604083850312156118b457600080fd5b82356118bf8161188c565b915060208301356118cf8161188c565b809150509250929050565b600080604083850312156118ed57600080fd5b82356118f88161185a565b946020939093013593505050565b60006020828403121561191857600080fd5b81356109458161188c565b60008060006060848603121561193857600080fd5b83356119438161188c565b925060208401356119538161188c565b915060408401356119638161188c565b809150509250925092565b60006020828403121561198057600080fd5b81516109458161188c565b634e487b7160e01b600052604160045260246000fd5b604051610120810167ffffffffffffffff811182821017156119c5576119c561198b565b60405290565b604051610200810167ffffffffffffffff811182821017156119c5576119c561198b565b80516119fa8161185a565b919050565b600060408284031215611a1157600080fd5b6040516040810181811067ffffffffffffffff82111715611a3457611a3461198b565b604052825181526020928301519281019290925250919050565b60005b83811015611a69578181015183820152602001611a51565b50506000910152565b600082601f830112611a8357600080fd5b815167ffffffffffffffff80821115611a9e57611a9e61198b565b604051601f8301601f19908116603f01168101908282118183101715611ac657611ac661198b565b81604052838152866020858801011115611adf57600080fd5b611af0846020830160208901611a4e565b9695505050505050565b805164ffffffffff811681146119fa57600080fd5b600060208284031215611b2157600080fd5b815167ffffffffffffffff80821115611b3957600080fd5b908301906101408286031215611b4e57600080fd5b611b566119a1565b611b5f836119ef565b8152611b6e86602085016119ff565b6020820152606083015182811115611b8557600080fd5b611b9187828601611a72565b6040830152506080830151606082015260a0830151608082015260c083015160a0820152611bc160e08401611afa565b60c08201526101009150611bd6828401611afa565b60e0820152611be86101208401611afa565b91810191909152949350505050565b80516001600160c01b0319811681146119fa57600080fd5b805161ffff811681146119fa57600080fd5b600060208284031215611c3357600080fd5b815167ffffffffffffffff80821115611c4b57600080fd5b908301906102008286031215611c6057600080fd5b611c686119cb565b611c71836119ef565b8152611c7f602084016119ef565b6020820152611c9060408401611bf7565b6040820152611ca160608401611bf7565b60608201526080830151608082015260a083015160a082015260c083015160c0820152611cd060e08401611afa565b60e08201526101008084015183811115611ce957600080fd5b611cf588828701611a72565b8284015250506101208084015183811115611d0f57600080fd5b611d1b88828701611a72565b8284015250506101409150611d31828401611c0f565b828201526101609150611d45828401611c0f565b82820152610180915081830151828201526101a09150611d66828401611afa565b828201526101c09150611d7a828401611afa565b828201526101e09150611be8828401611afa565b600060208284031215611da057600080fd5b5051919050565b805180151581146119fa57600080fd5b600060208284031215611dc957600080fd5b61094582611da7565b600060208284031215611de457600080fd5b81516109458161185a565b60008085851115611dff57600080fd5b83861115611e0c57600080fd5b5050820193919092039150565b6001600160e01b03198135818116916004851015611e415780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b60008251611e9b818460208701611a4e565b9190910192915050565b60008060408385031215611eb857600080fd5b611ec183611da7565b9150602083015163ffffffff811681146118cf57600080fdfef3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a26469706673582212208636e413e8434df1051628917992b098075a7d79893621fef1a1c9a3596ec0f564736f6c63430008140033",
642
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101165760003560e01c80638fb36037116100a2578063bf7e214f11610071578063bf7e214f1461025f578063c0c53b8b14610267578063db70354c1461027a578063dbacaaaf1461028d578063de7b5d14146102a057600080fd5b80638fb360371461020557806394b9929b146102265780639a8fe67814610239578063b5346af51461024c57600080fd5b8063485cc955116100e9578063485cc9551461017c5780635ab1bd531461018f5780636ebed908146101b45780637a9e5e4b146101df5780638de1d14e146101f257600080fd5b806306fa45651461011b5780630cc7e6141461013057806313ab148d1461014357806345983a8a14610169575b600080fd5b61012e61012936600461186f565b6102b1565b005b61012e61013e36600461186f565b6103f8565b61015661015136600461186f565b6106fa565b6040519081526020015b60405180910390f35b61015661017736600461186f565b61070b565b61012e61018a3660046118a1565b610797565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610160565b6101c76101c23660046118da565b610939565b6040516001600160601b039091168152602001610160565b61012e6101ed366004611906565b61094c565b61012e61020036600461186f565b6109d3565b61020d610bb3565b6040516001600160e01b03199091168152602001610160565b61015661023436600461186f565b610bec565b61012e61024736600461186f565b610bf7565b61012e61025a36600461186f565b610ef3565b61019c61102e565b61012e610275366004611923565b61104a565b6101c76102883660046118da565b6110a2565b6101c761029b3660046118da565b6110ae565b6003546001600160a01b031661019c565b6102be335b600036611141565b600354604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa158015610308573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032c919061196e565b604051634793b4ab60e01b81526001600160601b03841660048201526001600160a01b039190911690634793b4ab90602401600060405180830381865afa15801561037b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103a39190810190611b0f565b5190506103b08183611247565b604080516001600160601b038084168252841660208201527f8481dca68853151d9f39783b09bf4144fd4fadcbf056b07e508ca3f873f2b89891015b60405180910390a15050565b610401336102b6565b600354604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa15801561044b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046f919061196e565b60405163bd7d9d8560e01b81526001600160601b03841660048201526001600160a01b03919091169063bd7d9d8590602401600060405180830381865afa1580156104be573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104e69190810190611c21565b6020015190506000600360009054906101000a90046001600160a01b03166001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610541573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610565919061196e565b604051634793b4ab60e01b81526001600160601b03841660048201526001600160a01b039190911690634793b4ab90602401600060405180830381865afa1580156105b4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105dc9190810190611b0f565b5190506105e981836112ca565b61061e57604051635f73b3b960e11b81526001600160601b038084166004830152841660248201526044015b60405180910390fd5b6001600160601b0382166000908152600460208190526040918290209151631461054360e31b815273__$0dc988b1672de335b826773df9015af2da$__9263a3082a1892610680928891019182526001600160601b0316602082015260400190565b60006040518083038186803b15801561069857600080fd5b505af41580156106ac573d6000803e3d6000fd5b5050604080516001600160601b038087168252871660208201527f5cb68c560151617390da8ac6298cbe334b6a6e27a8bdea1f03a939de82a59b2a93500190505b60405180910390a1505050565b60006107058261136d565b92915050565b6001600160601b03811660009081526004602081905260408083209051638b6233dd60e01b81529182015273__$0dc988b1672de335b826773df9015af2da$__90638b6233dd906024015b602060405180830381865af4158015610773573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107059190611d8e565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff166000811580156107dd5750825b905060008267ffffffffffffffff1660011480156107fa5750303b155b905081158015610808575080155b156108265760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561085057845460ff60401b1916600160401b1785555b610859876113be565b856001600160a01b03163b60000361088f5760405163071669cf60e21b81526001600160a01b0387166004820152602401610615565b600080546001600160a01b0319166001600160a01b0388811691821790925560408051928a16835260208301919091527fa6804c76412ae2d729353ed187a48b0b95177ee5c111049b80878fd127224412910160405180910390a1831561093057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b600061094583836113d2565b9392505050565b3361095561102e565b6001600160a01b0316816001600160a01b0316146109905760405162d1953b60e31b81526001600160a01b0382166004820152602401610615565b816001600160a01b03163b6000036109c6576040516361798f2f60e11b81526001600160a01b0383166004820152602401610615565b6109cf8261142a565b5050565b6109dc336102b6565b600354604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa158015610a26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4a919061196e565b604051634793b4ab60e01b81526001600160601b03841660048201526001600160a01b039190911690634793b4ab90602401600060405180830381865afa158015610a99573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ac19190810190611b0f565b51604051630a4d29dd60e31b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906352694ee890602401602060405180830381865af4158015610b1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b419190611db7565b15610b6957604051620852e560e41b81526001600160601b0383166004820152602401610615565b610b738183611484565b604080516001600160601b038084168252841660208201527f559277c2e6b13df1c45b0a6a50bea96df5fc3499ee767963594bdd7cb5cc103591016103ec565b600080516020611edb833981519152805460009190600160a01b900460ff16610bdd576000610be6565b638fb3603760e01b5b91505090565b60006107058261158c565b610c00336102b6565b600354604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa158015610c4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6e919061196e565b60405163bd7d9d8560e01b81526001600160601b03841660048201526001600160a01b03919091169063bd7d9d8590602401600060405180830381865afa158015610cbd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ce59190810190611c21565b602080820151600354604080516302cd307160e01b8152905194955091936000936001600160a01b03909216926302cd30719260048083019391928290030181865afa158015610d39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5d919061196e565b604051634793b4ab60e01b81526001600160601b03841660048201526001600160a01b039190911690634793b4ab90602401600060405180830381865afa158015610dac573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610dd49190810190611b0f565b519050610de181836115dd565b610e09576040516352500dd960e01b81526001600160601b0383166004820152602401610615565b6001600160601b038216600090815260046020819052604091829020915163539eabab60e11b815273__$0dc988b1672de335b826773df9015af2da$__9263a73d575692610e6b928991019182526001600160601b0316602082015260400190565b60006040518083038186803b158015610e8357600080fd5b505af4158015610e97573d6000803e3d6000fd5b505050507fb0b509518a18f79abc72ff294f3a785a37721a790e8f0f53d8b991dac386102d836020015185604051610ee59291906001600160601b0392831681529116602082015260400190565b60405180910390a150505050565b610efc336102b6565b600354604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa158015610f46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6a919061196e565b604051634793b4ab60e01b81526001600160601b03841660048201526001600160a01b039190911690634793b4ab90602401600060405180830381865afa158015610fb9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fe19190810190611b0f565b519050610fee818361163f565b604080516001600160601b038084168252841660208201527fb153f926e58e76caa7d661713867b8f1bbfcbda82504931fab2dccc2610a98dd91016103ec565b600080516020611edb833981519152546001600160a01b031690565b6110548383610797565b600380546001600160a01b0319166001600160a01b0383169081179091556040519081527fe89455dcb69bf4efd41cbb10c8064808f360b87b03ae8c96349c71f4934ffa0f906020016106ed565b6000610945838361169a565b6001600160601b0382166000908152600460208190526040808320905163e797d89960e01b8152918201526024810183905273__$0dc988b1672de335b826773df9015af2da$__9063e797d899906044015b602060405180830381865af415801561111d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109459190611dd2565b600080516020611edb83398151915260008061117c61115e61102e565b873061116e600460008a8c611def565b61117791611e19565b6116f2565b915091508161123f5763ffffffff81161561121c57825460ff60a01b1916600160a01b1783556111aa61102e565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b81526004016111d993929190611e49565b600060405180830381600087803b1580156111f357600080fd5b505af1158015611207573d6000803e3d6000fd5b5050845460ff60a01b191685555061123f9050565b60405162d1953b60e31b81526001600160a01b0387166004820152602401610615565b505050505050565b6001600160601b03828116600090815260016020526040908190209051631461054360e31b81526004810191909152908216602482015273__$0dc988b1672de335b826773df9015af2da$__9063a3082a18906044015b60006040518083038186803b1580156112b657600080fd5b505af415801561123f573d6000803e3d6000fd5b6001600160601b0382166000908152600160205260408082209051632bfdd6b960e01b815273__$0dc988b1672de335b826773df9015af2da$__91632bfdd6b99161132c919086906004019182526001600160601b0316602082015260400190565b602060405180830381865af4158015611349573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109459190611db7565b6001600160601b0381166000908152600260205260408082209051638b6233dd60e01b8152600481019190915273__$0dc988b1672de335b826773df9015af2da$__90638b6233dd90602401610756565b6113c66117fe565b6113cf81611849565b50565b6001600160601b038216600090815260016020526040808220905163e797d89960e01b815260048101919091526024810183905273__$0dc988b1672de335b826773df9015af2da$__9063e797d89990604401611100565b600080516020611edb83398151915280546001600160a01b0319166001600160a01b03831690811782556040519081527f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad906020016103ec565b6001600160601b0382811660009081526002602090815260408083206001909252918290209151631461054360e31b81526004810182905292841660248401529173__$0dc988b1672de335b826773df9015af2da$__9063a3082a189060440160006040518083038186803b1580156114fc57600080fd5b505af4158015611510573d6000803e3d6000fd5b5050604051631461054360e31b8152600481018490526001600160601b038616602482015273__$0dc988b1672de335b826773df9015af2da$__925063a3082a18915060440160006040518083038186803b15801561156e57600080fd5b505af4158015611582573d6000803e3d6000fd5b5050505050505050565b6001600160601b0381166000908152600160205260408082209051638b6233dd60e01b8152600481019190915273__$0dc988b1672de335b826773df9015af2da$__90638b6233dd90602401610756565b6001600160601b0382166000908152600260205260408082209051632bfdd6b960e01b815273__$0dc988b1672de335b826773df9015af2da$__91632bfdd6b99161132c919086906004019182526001600160601b0316602082015260400190565b6001600160601b0382811660009081526001602052604090819020905163539eabab60e11b81526004810191909152908216602482015273__$0dc988b1672de335b826773df9015af2da$__9063a73d57569060440161129e565b6001600160601b038216600090815260026020526040808220905163e797d89960e01b815260048101919091526024810183905273__$0dc988b1672de335b826773df9015af2da$__9063e797d89990604401611100565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b179052516117619190611e89565b600060405180830381855afa9150503d806000811461179c576040519150601f19603f3d011682016040523d82523d6000602084013e6117a1565b606091505b509150915081156117f35760408151106117d357808060200190518101906117c99190611ea5565b90945092506117f3565b60208151106117f357808060200190518101906117f09190611db7565b93505b505094509492505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661184757604051631afcd79f60e31b815260040160405180910390fd5b565b6118516117fe565b6113cf8161142a565b6001600160601b03811681146113cf57600080fd5b60006020828403121561188157600080fd5b81356109458161185a565b6001600160a01b03811681146113cf57600080fd5b600080604083850312156118b457600080fd5b82356118bf8161188c565b915060208301356118cf8161188c565b809150509250929050565b600080604083850312156118ed57600080fd5b82356118f88161185a565b946020939093013593505050565b60006020828403121561191857600080fd5b81356109458161188c565b60008060006060848603121561193857600080fd5b83356119438161188c565b925060208401356119538161188c565b915060408401356119638161188c565b809150509250925092565b60006020828403121561198057600080fd5b81516109458161188c565b634e487b7160e01b600052604160045260246000fd5b604051610120810167ffffffffffffffff811182821017156119c5576119c561198b565b60405290565b604051610200810167ffffffffffffffff811182821017156119c5576119c561198b565b80516119fa8161185a565b919050565b600060408284031215611a1157600080fd5b6040516040810181811067ffffffffffffffff82111715611a3457611a3461198b565b604052825181526020928301519281019290925250919050565b60005b83811015611a69578181015183820152602001611a51565b50506000910152565b600082601f830112611a8357600080fd5b815167ffffffffffffffff80821115611a9e57611a9e61198b565b604051601f8301601f19908116603f01168101908282118183101715611ac657611ac661198b565b81604052838152866020858801011115611adf57600080fd5b611af0846020830160208901611a4e565b9695505050505050565b805164ffffffffff811681146119fa57600080fd5b600060208284031215611b2157600080fd5b815167ffffffffffffffff80821115611b3957600080fd5b908301906101408286031215611b4e57600080fd5b611b566119a1565b611b5f836119ef565b8152611b6e86602085016119ff565b6020820152606083015182811115611b8557600080fd5b611b9187828601611a72565b6040830152506080830151606082015260a0830151608082015260c083015160a0820152611bc160e08401611afa565b60c08201526101009150611bd6828401611afa565b60e0820152611be86101208401611afa565b91810191909152949350505050565b80516001600160c01b0319811681146119fa57600080fd5b805161ffff811681146119fa57600080fd5b600060208284031215611c3357600080fd5b815167ffffffffffffffff80821115611c4b57600080fd5b908301906102008286031215611c6057600080fd5b611c686119cb565b611c71836119ef565b8152611c7f602084016119ef565b6020820152611c9060408401611bf7565b6040820152611ca160608401611bf7565b60608201526080830151608082015260a083015160a082015260c083015160c0820152611cd060e08401611afa565b60e08201526101008084015183811115611ce957600080fd5b611cf588828701611a72565b8284015250506101208084015183811115611d0f57600080fd5b611d1b88828701611a72565b8284015250506101409150611d31828401611c0f565b828201526101609150611d45828401611c0f565b82820152610180915081830151828201526101a09150611d66828401611afa565b828201526101c09150611d7a828401611afa565b828201526101e09150611be8828401611afa565b600060208284031215611da057600080fd5b5051919050565b805180151581146119fa57600080fd5b600060208284031215611dc957600080fd5b61094582611da7565b600060208284031215611de457600080fd5b81516109458161185a565b60008085851115611dff57600080fd5b83861115611e0c57600080fd5b5050820193919092039150565b6001600160e01b03198135818116916004851015611e415780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b60008251611e9b818460208701611a4e565b9190910192915050565b60008060408385031215611eb857600080fd5b611ec183611da7565b9150602083015163ffffffff811681146118cf57600080fdfef3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a26469706673582212208636e413e8434df1051628917992b098075a7d79893621fef1a1c9a3596ec0f564736f6c63430008140033",
643
+ "linkReferences": {
644
+ "contracts/types/NftId.sol": {
645
+ "NftIdLib": [
646
+ {
647
+ "length": 20,
648
+ "start": 2835
649
+ }
650
+ ]
651
+ },
652
+ "contracts/types/NftIdSet.sol": {
653
+ "LibNftIdSet": [
654
+ {
655
+ "length": 20,
656
+ "start": 1656
657
+ },
658
+ {
659
+ "length": 20,
660
+ "start": 1896
661
+ },
662
+ {
663
+ "length": 20,
664
+ "start": 3683
665
+ },
666
+ {
667
+ "length": 20,
668
+ "start": 4370
669
+ },
670
+ {
671
+ "length": 20,
672
+ "start": 4784
673
+ },
674
+ {
675
+ "length": 20,
676
+ "start": 4897
677
+ },
678
+ {
679
+ "length": 20,
680
+ "start": 5068
681
+ },
682
+ {
683
+ "length": 20,
684
+ "start": 5176
685
+ },
686
+ {
687
+ "length": 20,
688
+ "start": 5367
689
+ },
690
+ {
691
+ "length": 20,
692
+ "start": 5479
693
+ },
694
+ {
695
+ "length": 20,
696
+ "start": 5611
697
+ },
698
+ {
699
+ "length": 20,
700
+ "start": 5684
701
+ },
702
+ {
703
+ "length": 20,
704
+ "start": 5800
705
+ },
706
+ {
707
+ "length": 20,
708
+ "start": 5888
709
+ }
710
+ ]
711
+ }
712
+ },
713
+ "deployedLinkReferences": {
714
+ "contracts/types/NftId.sol": {
715
+ "NftIdLib": [
716
+ {
717
+ "length": 20,
718
+ "start": 2787
719
+ }
720
+ ]
721
+ },
722
+ "contracts/types/NftIdSet.sol": {
723
+ "LibNftIdSet": [
724
+ {
725
+ "length": 20,
726
+ "start": 1608
727
+ },
728
+ {
729
+ "length": 20,
730
+ "start": 1848
731
+ },
732
+ {
733
+ "length": 20,
734
+ "start": 3635
735
+ },
736
+ {
737
+ "length": 20,
738
+ "start": 4322
739
+ },
740
+ {
741
+ "length": 20,
742
+ "start": 4736
743
+ },
744
+ {
745
+ "length": 20,
746
+ "start": 4849
747
+ },
748
+ {
749
+ "length": 20,
750
+ "start": 5020
751
+ },
752
+ {
753
+ "length": 20,
754
+ "start": 5128
755
+ },
756
+ {
757
+ "length": 20,
758
+ "start": 5319
759
+ },
760
+ {
761
+ "length": 20,
762
+ "start": 5431
763
+ },
764
+ {
765
+ "length": 20,
766
+ "start": 5563
767
+ },
768
+ {
769
+ "length": 20,
770
+ "start": 5636
771
+ },
772
+ {
773
+ "length": 20,
774
+ "start": 5752
775
+ },
776
+ {
777
+ "length": 20,
778
+ "start": 5840
779
+ }
780
+ ]
781
+ }
782
+ }
783
+ }