@etherisc/gif-next 0.0.2-f7b8c9f-518 → 0.0.2-f7bec40-735

Sign up to get free protection for your applications and to get access to all the features.
Files changed (486) hide show
  1. package/README.md +178 -14
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +873 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +1023 -204
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/IComponent.sol/IComponent.json +636 -0
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +862 -39
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +916 -129
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +694 -40
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +958 -267
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +778 -194
  18. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  19. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +778 -0
  20. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  21. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +190 -0
  22. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  23. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +226 -1822
  24. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  25. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +616 -0
  26. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  27. package/artifacts/contracts/instance/Instance.sol/Instance.json +444 -2190
  28. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  29. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1348 -0
  30. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +4 -0
  31. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +124 -0
  32. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  33. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1569 -0
  34. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  35. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +979 -0
  36. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  37. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +656 -0
  38. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
  39. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2788 -0
  40. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  41. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +256 -0
  42. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  43. package/artifacts/contracts/instance/base/{InstanceBase.sol/InstanceBase.json → ComponentService.sol/ComponentService.json} +282 -195
  44. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +27 -158
  46. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  47. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  48. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +67 -245
  49. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  50. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
  51. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  52. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +237 -0
  53. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  54. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  55. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  56. package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IComponents.sol/IComponents.json} +2 -2
  57. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  58. package/artifacts/contracts/instance/module/{distribution/IDistribution.sol → IDistribution.sol}/IDistribution.json +1 -1
  59. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  60. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  61. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  62. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  63. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  64. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  65. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  66. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  67. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  68. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +918 -0
  69. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  70. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +648 -0
  71. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  72. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1288 -0
  73. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  74. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +696 -0
  75. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  76. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +1384 -0
  77. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  78. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +752 -0
  79. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  80. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1103 -177
  81. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  82. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +780 -0
  83. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  84. package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IApplicationService.sol/IApplicationService.json} +231 -204
  85. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  86. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +735 -0
  87. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  88. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +743 -0
  89. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  90. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +540 -146
  91. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  92. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +651 -0
  93. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  94. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +669 -153
  95. package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.dbg.json +4 -0
  96. package/artifacts/contracts/instance/{base/ServiceBase.sol/ServiceBase.json → service/IPricingService.sol/IPricingService.json} +245 -203
  97. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  98. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +88 -397
  99. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  100. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1281 -0
  101. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  102. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +740 -0
  103. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  104. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +1080 -211
  105. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  106. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +708 -0
  107. package/artifacts/contracts/instance/service/PricingService.sol/PricingService.dbg.json +4 -0
  108. package/artifacts/contracts/instance/service/PricingService.sol/PricingService.json +1004 -0
  109. package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
  110. package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.json +688 -0
  111. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  112. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +327 -531
  113. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  114. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +640 -0
  115. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  116. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +60 -2
  117. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  118. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +255 -63
  119. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  120. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +309 -196
  121. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  122. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
  123. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  124. package/artifacts/contracts/registry/Registry.sol/Registry.json +229 -212
  125. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  126. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  127. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  128. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +422 -269
  129. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  130. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +311 -122
  131. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  132. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +559 -0
  133. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  134. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +485 -0
  135. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  136. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  137. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  138. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  139. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  140. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  141. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +27 -29
  142. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  143. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +189 -0
  144. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  145. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +8 -34
  146. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  147. package/artifacts/contracts/{experiment/inheritance/IA.sol/ISharedA.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +15 -17
  148. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  149. package/artifacts/contracts/{components/BaseComponent.sol/BaseComponent.json → shared/IService.sol/IService.json} +93 -67
  150. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  151. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  152. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  153. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +107 -27
  154. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  155. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +302 -0
  156. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  157. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +283 -63
  158. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  159. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +116 -51
  160. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  161. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +71 -0
  162. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  163. package/artifacts/contracts/{instance/base/ComponentServiceBase.sol/ComponentServiceBase.json → shared/Service.sol/Service.json} +187 -180
  164. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  165. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +114 -0
  166. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  167. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  168. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  169. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  170. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  171. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  172. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  173. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +116 -51
  174. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  175. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
  176. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  177. package/artifacts/contracts/test/TestService.sol/TestService.json +204 -200
  178. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  179. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  180. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  181. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  182. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  183. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -174
  184. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  185. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  186. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  187. package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +4 -0
  188. package/artifacts/contracts/types/Amount.sol/AmountLib.json +281 -0
  189. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  190. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  191. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  192. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  193. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +179 -0
  194. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  195. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  196. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  197. package/artifacts/contracts/types/Fee.sol/FeeLib.json +74 -19
  198. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  199. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
  200. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  201. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
  202. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  203. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  204. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  205. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  206. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  207. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  208. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  209. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +209 -0
  210. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  211. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +142 -0
  212. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  213. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  214. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  215. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
  216. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  217. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  218. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  219. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  220. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  221. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +51 -7
  222. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  223. package/artifacts/contracts/{experiment/types/TypeB.sol/TypeBLib.json → types/UFixed.sol/MathLib.json} +4 -4
  224. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  225. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  226. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  227. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  228. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  229. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  230. package/contracts/components/Component.sol +272 -0
  231. package/contracts/components/Distribution.sol +209 -79
  232. package/contracts/components/IComponent.sol +90 -0
  233. package/contracts/components/IDistributionComponent.sol +43 -18
  234. package/contracts/components/IPoolComponent.sol +90 -40
  235. package/contracts/components/IProductComponent.sol +17 -13
  236. package/contracts/components/Pool.sol +222 -166
  237. package/contracts/components/Product.sol +258 -182
  238. package/contracts/instance/BundleManager.sol +126 -0
  239. package/contracts/instance/Cloneable.sol +51 -0
  240. package/contracts/instance/IInstance.sol +63 -40
  241. package/contracts/instance/IInstanceService.sol +73 -0
  242. package/contracts/instance/Instance.sol +213 -71
  243. package/contracts/instance/InstanceAccessManager.sol +541 -0
  244. package/contracts/instance/InstanceAuthorizationsLib.sol +308 -0
  245. package/contracts/instance/InstanceReader.sol +368 -0
  246. package/contracts/instance/InstanceService.sol +308 -0
  247. package/contracts/instance/InstanceServiceManager.sol +54 -0
  248. package/contracts/instance/InstanceStore.sol +212 -0
  249. package/contracts/instance/ObjectManager.sol +82 -0
  250. package/contracts/instance/base/ComponentService.sol +148 -0
  251. package/contracts/instance/base/IKeyValueStore.sol +13 -14
  252. package/contracts/instance/base/ILifecycle.sol +3 -3
  253. package/contracts/instance/base/KeyValueStore.sol +30 -42
  254. package/contracts/instance/base/Lifecycle.sol +27 -7
  255. package/contracts/instance/module/IAccess.sol +54 -0
  256. package/contracts/instance/module/IBundle.sol +23 -0
  257. package/contracts/instance/module/IComponents.sol +41 -0
  258. package/contracts/instance/module/IDistribution.sol +42 -0
  259. package/contracts/instance/module/IPolicy.sol +77 -0
  260. package/contracts/instance/module/IRisk.sol +11 -0
  261. package/contracts/instance/module/ISetup.sol +33 -0
  262. package/contracts/instance/module/ITreasury.sol +23 -0
  263. package/contracts/instance/service/ApplicationService.sol +186 -0
  264. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  265. package/contracts/instance/service/BundleService.sol +382 -0
  266. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  267. package/contracts/instance/service/ClaimService.sol +437 -0
  268. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  269. package/contracts/instance/service/DistributionService.sol +317 -23
  270. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  271. package/contracts/instance/service/IApplicationService.sol +62 -0
  272. package/contracts/instance/service/IBundleService.sol +118 -0
  273. package/contracts/instance/service/IClaimService.sol +90 -0
  274. package/contracts/instance/service/IDistributionService.sol +77 -2
  275. package/contracts/instance/service/IPolicyService.sol +80 -0
  276. package/contracts/instance/service/IPoolService.sol +95 -18
  277. package/contracts/instance/service/IPricingService.sol +37 -0
  278. package/contracts/instance/service/IProductService.sol +9 -76
  279. package/contracts/instance/service/PolicyService.sol +376 -0
  280. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  281. package/contracts/instance/service/PoolService.sol +339 -85
  282. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  283. package/contracts/instance/service/PricingService.sol +275 -0
  284. package/contracts/instance/service/PricingServiceManager.sol +51 -0
  285. package/contracts/instance/service/ProductService.sol +135 -435
  286. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  287. package/contracts/registry/ChainNft.sol +49 -26
  288. package/contracts/registry/IRegistry.sol +53 -25
  289. package/contracts/registry/IRegistryService.sol +53 -16
  290. package/contracts/registry/ITransferInterceptor.sol +1 -0
  291. package/contracts/registry/Registry.sol +289 -313
  292. package/contracts/registry/RegistryAccessManager.sol +216 -0
  293. package/contracts/registry/RegistryService.sol +165 -247
  294. package/contracts/registry/RegistryServiceManager.sol +30 -11
  295. package/contracts/registry/ReleaseManager.sol +324 -0
  296. package/contracts/registry/TokenRegistry.sol +116 -0
  297. package/contracts/shared/AccessManagerUpgradeableInitializeable.sol +13 -0
  298. package/contracts/shared/ERC165.sol +15 -9
  299. package/contracts/shared/INftOwnable.sol +11 -10
  300. package/contracts/shared/IPolicyHolder.sol +40 -0
  301. package/contracts/shared/IRegisterable.sol +4 -6
  302. package/contracts/shared/IRegistryLinked.sol +11 -0
  303. package/contracts/shared/IService.sol +18 -0
  304. package/contracts/shared/IVersionable.sol +4 -47
  305. package/contracts/shared/NftOwnable.sol +65 -83
  306. package/contracts/shared/PolicyHolder.sol +94 -0
  307. package/contracts/shared/ProxyManager.sol +101 -26
  308. package/contracts/shared/Registerable.sol +25 -39
  309. package/contracts/shared/RegistryLinked.sol +43 -0
  310. package/contracts/shared/Service.sol +72 -0
  311. package/contracts/shared/TokenHandler.sol +35 -0
  312. package/contracts/shared/UpgradableProxyWithAdmin.sol +2 -2
  313. package/contracts/shared/Versionable.sol +5 -93
  314. package/contracts/test/TestFee.sol +2 -2
  315. package/contracts/test/TestRegisterable.sol +1 -1
  316. package/contracts/test/TestRoleId.sol +1 -1
  317. package/contracts/test/TestService.sol +6 -7
  318. package/contracts/types/Amount.sol +109 -0
  319. package/contracts/types/Blocknumber.sol +1 -0
  320. package/contracts/types/ClaimId.sol +75 -0
  321. package/contracts/types/DistributorType.sol +55 -0
  322. package/contracts/types/Fee.sol +19 -10
  323. package/contracts/types/Key32.sol +8 -3
  324. package/contracts/types/NftId.sol +8 -0
  325. package/contracts/types/NftIdSet.sol +26 -24
  326. package/contracts/types/NumberId.sol +52 -0
  327. package/contracts/types/ObjectType.sol +44 -14
  328. package/contracts/types/PayoutId.sol +82 -0
  329. package/contracts/types/Referral.sol +89 -0
  330. package/contracts/types/RoleId.sol +68 -9
  331. package/contracts/types/Seconds.sol +54 -0
  332. package/contracts/types/StateId.sol +12 -3
  333. package/contracts/types/Timestamp.sol +22 -13
  334. package/contracts/types/UFixed.sol +129 -12
  335. package/contracts/types/Version.sol +5 -1
  336. package/package.json +6 -5
  337. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  338. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  339. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -254
  340. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  341. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  342. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  343. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  344. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  345. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  346. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  347. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  348. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  349. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  350. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  351. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  352. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  353. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  354. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  355. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  356. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +0 -50
  357. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  358. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  359. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  360. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  361. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  362. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  363. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  364. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  365. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  366. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  367. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  368. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  369. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  370. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  371. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  372. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  373. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  374. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  375. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  376. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  377. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  378. package/artifacts/contracts/instance/base/IService.sol/IService.json +0 -421
  379. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  380. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  381. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  382. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  383. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  384. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  385. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  386. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  387. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  388. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -297
  389. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  390. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  391. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -297
  392. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  393. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -117
  394. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  395. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  396. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  397. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -117
  398. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +0 -4
  399. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +0 -10
  400. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +0 -4
  401. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +0 -4
  402. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +0 -10
  403. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  404. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  405. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -271
  406. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  407. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -271
  408. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  409. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  410. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  411. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -164
  412. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  413. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -164
  414. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  415. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  416. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -113
  417. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  418. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -131
  419. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  420. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  421. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -638
  422. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  423. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  424. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  425. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -638
  426. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  427. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -794
  428. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  429. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  430. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -457
  431. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +0 -4
  432. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +0 -557
  433. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  434. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -716
  435. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  436. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -744
  437. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +0 -4
  438. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +0 -99
  439. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  440. package/contracts/components/BaseComponent.sol +0 -79
  441. package/contracts/components/IBaseComponent.sol +0 -19
  442. package/contracts/experiment/errors/Require.sol +0 -38
  443. package/contracts/experiment/errors/Revert.sol +0 -44
  444. package/contracts/experiment/inheritance/A.sol +0 -53
  445. package/contracts/experiment/inheritance/B.sol +0 -28
  446. package/contracts/experiment/inheritance/C.sol +0 -34
  447. package/contracts/experiment/inheritance/IA.sol +0 -13
  448. package/contracts/experiment/inheritance/IB.sol +0 -10
  449. package/contracts/experiment/inheritance/IC.sol +0 -12
  450. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  451. package/contracts/experiment/statemachine/ISM.sol +0 -25
  452. package/contracts/experiment/statemachine/SM.sol +0 -57
  453. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  454. package/contracts/experiment/types/TypeA.sol +0 -47
  455. package/contracts/experiment/types/TypeB.sol +0 -29
  456. package/contracts/instance/IInstanceLinked.sol +0 -8
  457. package/contracts/instance/base/ComponentServiceBase.sol +0 -49
  458. package/contracts/instance/base/IInstanceBase.sol +0 -23
  459. package/contracts/instance/base/IService.sol +0 -15
  460. package/contracts/instance/base/InstanceBase.sol +0 -89
  461. package/contracts/instance/base/ModuleBase.sol +0 -57
  462. package/contracts/instance/base/ServiceBase.sol +0 -44
  463. package/contracts/instance/module/access/Access.sol +0 -149
  464. package/contracts/instance/module/access/IAccess.sol +0 -53
  465. package/contracts/instance/module/bundle/BundleModule.sol +0 -134
  466. package/contracts/instance/module/bundle/IBundle.sol +0 -53
  467. package/contracts/instance/module/component/ComponentModule.sol +0 -71
  468. package/contracts/instance/module/component/IComponent.sol +0 -28
  469. package/contracts/instance/module/distribution/DistributionModule.sol +0 -17
  470. package/contracts/instance/module/distribution/IDistribution.sol +0 -10
  471. package/contracts/instance/module/policy/IPolicy.sol +0 -63
  472. package/contracts/instance/module/policy/PolicyModule.sol +0 -91
  473. package/contracts/instance/module/pool/IPoolModule.sol +0 -41
  474. package/contracts/instance/module/pool/PoolModule.sol +0 -95
  475. package/contracts/instance/module/risk/IRisk.sol +0 -26
  476. package/contracts/instance/module/risk/RiskModule.sol +0 -62
  477. package/contracts/instance/module/treasury/ITreasury.sol +0 -84
  478. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  479. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -131
  480. package/contracts/instance/service/ComponentOwnerService.sol +0 -275
  481. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  482. package/contracts/registry/IChainNft.sol +0 -22
  483. package/contracts/test/TestDistribution.sol +0 -22
  484. package/contracts/test/TestPool.sol +0 -27
  485. package/contracts/test/TestProduct.sol +0 -74
  486. package/contracts/types/ReferralId.sol +0 -48
@@ -7,156 +7,193 @@
7
7
  "inputs": [
8
8
  {
9
9
  "internalType": "address",
10
- "name": "registry",
10
+ "name": "authority",
11
11
  "type": "address"
12
- },
13
- {
14
- "internalType": "NftId",
15
- "name": "instanceNftid",
16
- "type": "uint96"
17
- },
12
+ }
13
+ ],
14
+ "name": "AccessManagedInvalidAuthority",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
18
19
  {
19
20
  "internalType": "address",
20
- "name": "token",
21
+ "name": "caller",
21
22
  "type": "address"
22
23
  },
23
24
  {
24
- "internalType": "bool",
25
- "name": "isInterceptor",
26
- "type": "bool"
27
- },
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
28
+ }
29
+ ],
30
+ "name": "AccessManagedRequiredDelay",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
28
35
  {
29
36
  "internalType": "address",
30
- "name": "pool",
37
+ "name": "caller",
31
38
  "type": "address"
32
- },
39
+ }
40
+ ],
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
33
46
  {
34
47
  "internalType": "address",
35
- "name": "distribution",
48
+ "name": "target",
36
49
  "type": "address"
37
- },
38
- {
39
- "components": [
40
- {
41
- "internalType": "UFixed",
42
- "name": "fractionalFee",
43
- "type": "uint256"
44
- },
45
- {
46
- "internalType": "uint256",
47
- "name": "fixedFee",
48
- "type": "uint256"
49
- }
50
- ],
51
- "internalType": "struct Fee",
52
- "name": "productFee",
53
- "type": "tuple"
54
- },
55
- {
56
- "components": [
57
- {
58
- "internalType": "UFixed",
59
- "name": "fractionalFee",
60
- "type": "uint256"
61
- },
62
- {
63
- "internalType": "uint256",
64
- "name": "fixedFee",
65
- "type": "uint256"
66
- }
67
- ],
68
- "internalType": "struct Fee",
69
- "name": "processingFee",
70
- "type": "tuple"
71
- },
50
+ }
51
+ ],
52
+ "name": "AddressEmptyCode",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
72
57
  {
73
58
  "internalType": "address",
74
- "name": "initialOwner",
59
+ "name": "account",
75
60
  "type": "address"
76
61
  }
77
62
  ],
78
- "stateMutability": "nonpayable",
79
- "type": "constructor"
63
+ "name": "AddressInsufficientBalance",
64
+ "type": "error"
80
65
  },
81
66
  {
82
67
  "inputs": [
83
68
  {
84
69
  "internalType": "address",
85
- "name": "registry",
70
+ "name": "caller",
86
71
  "type": "address"
87
- },
72
+ }
73
+ ],
74
+ "name": "ErrorComponentNotChainNft",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [
88
79
  {
89
80
  "internalType": "NftId",
90
- "name": "nftId",
81
+ "name": "instanceNftId",
91
82
  "type": "uint96"
92
83
  }
93
84
  ],
94
- "name": "ErrorAlreadyLinked",
85
+ "name": "ErrorComponentNotInstance",
95
86
  "type": "error"
96
87
  },
97
88
  {
98
89
  "inputs": [
99
90
  {
100
91
  "internalType": "address",
101
- "name": "contractAddress",
92
+ "name": "caller",
102
93
  "type": "address"
103
94
  }
104
95
  ],
105
- "name": "ErrorContractNotRegistered",
96
+ "name": "ErrorComponentNotProductService",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [],
101
+ "name": "ErrorComponentProductNftAlreadySet",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "inputs": [],
106
+ "name": "ErrorComponentWalletAddressIsSameAsCurrent",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "ErrorComponentWalletAddressZero",
106
112
  "type": "error"
107
113
  },
108
114
  {
109
115
  "inputs": [
110
116
  {
111
117
  "internalType": "address",
112
- "name": "account",
118
+ "name": "oldWallet",
119
+ "type": "address"
120
+ },
121
+ {
122
+ "internalType": "address",
123
+ "name": "newWallet",
113
124
  "type": "address"
125
+ },
126
+ {
127
+ "internalType": "uint256",
128
+ "name": "allowance",
129
+ "type": "uint256"
130
+ },
131
+ {
132
+ "internalType": "uint256",
133
+ "name": "balance",
134
+ "type": "uint256"
114
135
  }
115
136
  ],
116
- "name": "ErrorNotOwner",
137
+ "name": "ErrorComponentWalletAllowanceTooSmall",
138
+ "type": "error"
139
+ },
140
+ {
141
+ "inputs": [],
142
+ "name": "ErrorComponentWalletNotComponent",
117
143
  "type": "error"
118
144
  },
119
145
  {
120
146
  "inputs": [
121
147
  {
122
- "internalType": "address",
123
- "name": "registryAddress",
124
- "type": "address"
148
+ "internalType": "NftId",
149
+ "name": "nftId",
150
+ "type": "uint96"
125
151
  }
126
152
  ],
127
- "name": "ErrorNotRegistry",
153
+ "name": "ErrorNftOwnableAlreadyLinked",
128
154
  "type": "error"
129
155
  },
130
156
  {
131
157
  "inputs": [
132
158
  {
133
159
  "internalType": "address",
134
- "name": "registryAddress",
160
+ "name": "contractAddress",
135
161
  "type": "address"
136
162
  }
137
163
  ],
138
- "name": "ErrorRegisterableNotRegistry",
164
+ "name": "ErrorNftOwnableContractNotRegistered",
139
165
  "type": "error"
140
166
  },
141
167
  {
142
168
  "inputs": [],
143
- "name": "ErrorRegistryAddressZero",
169
+ "name": "ErrorNftOwnableInitialOwnerZero",
144
170
  "type": "error"
145
171
  },
146
172
  {
147
173
  "inputs": [
148
174
  {
149
175
  "internalType": "address",
150
- "name": "registry",
176
+ "name": "account",
151
177
  "type": "address"
152
178
  }
153
179
  ],
154
- "name": "ErrorRegistryAlreadyInitialized",
180
+ "name": "ErrorNftOwnableNotOwner",
181
+ "type": "error"
182
+ },
183
+ {
184
+ "inputs": [
185
+ {
186
+ "internalType": "address",
187
+ "name": "registryAddress",
188
+ "type": "address"
189
+ }
190
+ ],
191
+ "name": "ErrorNotRegistry",
155
192
  "type": "error"
156
193
  },
157
194
  {
158
195
  "inputs": [],
159
- "name": "ErrorRegistryNotInitialized",
196
+ "name": "FailedInnerCall",
160
197
  "type": "error"
161
198
  },
162
199
  {
@@ -169,6 +206,30 @@
169
206
  "name": "NotInitializing",
170
207
  "type": "error"
171
208
  },
209
+ {
210
+ "inputs": [
211
+ {
212
+ "internalType": "address",
213
+ "name": "token",
214
+ "type": "address"
215
+ }
216
+ ],
217
+ "name": "SafeERC20FailedOperation",
218
+ "type": "error"
219
+ },
220
+ {
221
+ "anonymous": false,
222
+ "inputs": [
223
+ {
224
+ "indexed": false,
225
+ "internalType": "address",
226
+ "name": "authority",
227
+ "type": "address"
228
+ }
229
+ ],
230
+ "name": "AuthorityUpdated",
231
+ "type": "event"
232
+ },
172
233
  {
173
234
  "anonymous": false,
174
235
  "inputs": [
@@ -182,6 +243,102 @@
182
243
  "name": "Initialized",
183
244
  "type": "event"
184
245
  },
246
+ {
247
+ "anonymous": false,
248
+ "inputs": [
249
+ {
250
+ "indexed": false,
251
+ "internalType": "uint256",
252
+ "name": "limit",
253
+ "type": "uint256"
254
+ }
255
+ ],
256
+ "name": "LogComponentTokenHandlerApproved",
257
+ "type": "event"
258
+ },
259
+ {
260
+ "anonymous": false,
261
+ "inputs": [
262
+ {
263
+ "indexed": false,
264
+ "internalType": "address",
265
+ "name": "oldWallet",
266
+ "type": "address"
267
+ },
268
+ {
269
+ "indexed": false,
270
+ "internalType": "address",
271
+ "name": "newWallet",
272
+ "type": "address"
273
+ }
274
+ ],
275
+ "name": "LogComponentWalletAddressChanged",
276
+ "type": "event"
277
+ },
278
+ {
279
+ "anonymous": false,
280
+ "inputs": [
281
+ {
282
+ "indexed": false,
283
+ "internalType": "address",
284
+ "name": "from",
285
+ "type": "address"
286
+ },
287
+ {
288
+ "indexed": false,
289
+ "internalType": "address",
290
+ "name": "to",
291
+ "type": "address"
292
+ },
293
+ {
294
+ "indexed": false,
295
+ "internalType": "uint256",
296
+ "name": "amount",
297
+ "type": "uint256"
298
+ }
299
+ ],
300
+ "name": "LogComponentWalletTokensTransferred",
301
+ "type": "event"
302
+ },
303
+ {
304
+ "inputs": [],
305
+ "name": "COMPONENT_LOCATION_V1",
306
+ "outputs": [
307
+ {
308
+ "internalType": "bytes32",
309
+ "name": "",
310
+ "type": "bytes32"
311
+ }
312
+ ],
313
+ "stateMutability": "view",
314
+ "type": "function"
315
+ },
316
+ {
317
+ "inputs": [],
318
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
319
+ "outputs": [
320
+ {
321
+ "internalType": "bytes32",
322
+ "name": "",
323
+ "type": "bytes32"
324
+ }
325
+ ],
326
+ "stateMutability": "view",
327
+ "type": "function"
328
+ },
329
+ {
330
+ "inputs": [],
331
+ "name": "PRODUCT_STORAGE_LOCATION_V1",
332
+ "outputs": [
333
+ {
334
+ "internalType": "bytes32",
335
+ "name": "",
336
+ "type": "bytes32"
337
+ }
338
+ ],
339
+ "stateMutability": "view",
340
+ "type": "function"
341
+ },
185
342
  {
186
343
  "inputs": [],
187
344
  "name": "REGISTERABLE_LOCATION_V1",
@@ -199,8 +356,34 @@
199
356
  "inputs": [
200
357
  {
201
358
  "internalType": "uint256",
202
- "name": "sumInsuredAmount",
359
+ "name": "spendingLimitAmount",
203
360
  "type": "uint256"
361
+ }
362
+ ],
363
+ "name": "approveTokenHandler",
364
+ "outputs": [],
365
+ "stateMutability": "nonpayable",
366
+ "type": "function"
367
+ },
368
+ {
369
+ "inputs": [],
370
+ "name": "authority",
371
+ "outputs": [
372
+ {
373
+ "internalType": "address",
374
+ "name": "",
375
+ "type": "address"
376
+ }
377
+ ],
378
+ "stateMutability": "view",
379
+ "type": "function"
380
+ },
381
+ {
382
+ "inputs": [
383
+ {
384
+ "internalType": "Amount",
385
+ "name": "sumInsuredAmount",
386
+ "type": "uint96"
204
387
  },
205
388
  {
206
389
  "internalType": "RiskId",
@@ -208,9 +391,9 @@
208
391
  "type": "bytes8"
209
392
  },
210
393
  {
211
- "internalType": "uint256",
394
+ "internalType": "Seconds",
212
395
  "name": "lifetime",
213
- "type": "uint256"
396
+ "type": "uint40"
214
397
  },
215
398
  {
216
399
  "internalType": "bytes",
@@ -221,9 +404,9 @@
221
404
  "name": "calculateNetPremium",
222
405
  "outputs": [
223
406
  {
224
- "internalType": "uint256",
407
+ "internalType": "Amount",
225
408
  "name": "netPremiumAmount",
226
- "type": "uint256"
409
+ "type": "uint96"
227
410
  }
228
411
  ],
229
412
  "stateMutability": "view",
@@ -232,9 +415,9 @@
232
415
  {
233
416
  "inputs": [
234
417
  {
235
- "internalType": "uint256",
418
+ "internalType": "Amount",
236
419
  "name": "sumInsuredAmount",
237
- "type": "uint256"
420
+ "type": "uint96"
238
421
  },
239
422
  {
240
423
  "internalType": "RiskId",
@@ -242,32 +425,82 @@
242
425
  "type": "bytes8"
243
426
  },
244
427
  {
245
- "internalType": "uint256",
428
+ "internalType": "Seconds",
246
429
  "name": "lifetime",
247
- "type": "uint256"
430
+ "type": "uint40"
248
431
  },
249
432
  {
250
433
  "internalType": "bytes",
251
434
  "name": "applicationData",
252
435
  "type": "bytes"
253
436
  },
254
- {
255
- "internalType": "ReferralId",
256
- "name": "referralId",
257
- "type": "bytes8"
258
- },
259
437
  {
260
438
  "internalType": "NftId",
261
439
  "name": "bundleNftId",
262
440
  "type": "uint96"
441
+ },
442
+ {
443
+ "internalType": "ReferralId",
444
+ "name": "referralId",
445
+ "type": "bytes8"
263
446
  }
264
447
  ],
265
448
  "name": "calculatePremium",
266
449
  "outputs": [
267
450
  {
268
- "internalType": "uint256",
451
+ "internalType": "Amount",
269
452
  "name": "premiumAmount",
270
- "type": "uint256"
453
+ "type": "uint96"
454
+ }
455
+ ],
456
+ "stateMutability": "view",
457
+ "type": "function"
458
+ },
459
+ {
460
+ "inputs": [],
461
+ "name": "getComponentInfo",
462
+ "outputs": [
463
+ {
464
+ "components": [
465
+ {
466
+ "internalType": "string",
467
+ "name": "name",
468
+ "type": "string"
469
+ },
470
+ {
471
+ "internalType": "contract IERC20Metadata",
472
+ "name": "token",
473
+ "type": "address"
474
+ },
475
+ {
476
+ "internalType": "contract TokenHandler",
477
+ "name": "tokenHandler",
478
+ "type": "address"
479
+ },
480
+ {
481
+ "internalType": "address",
482
+ "name": "wallet",
483
+ "type": "address"
484
+ },
485
+ {
486
+ "internalType": "Amount",
487
+ "name": "balanceAmount",
488
+ "type": "uint96"
489
+ },
490
+ {
491
+ "internalType": "Amount",
492
+ "name": "feeAmount",
493
+ "type": "uint96"
494
+ },
495
+ {
496
+ "internalType": "bytes",
497
+ "name": "data",
498
+ "type": "bytes"
499
+ }
500
+ ],
501
+ "internalType": "struct IComponents.ComponentInfo",
502
+ "name": "info",
503
+ "type": "tuple"
271
504
  }
272
505
  ],
273
506
  "stateMutability": "view",
@@ -329,13 +562,47 @@
329
562
  }
330
563
  ],
331
564
  "internalType": "struct IRegistry.ObjectInfo",
332
- "name": "",
565
+ "name": "info",
333
566
  "type": "tuple"
334
- },
567
+ }
568
+ ],
569
+ "stateMutability": "view",
570
+ "type": "function"
571
+ },
572
+ {
573
+ "inputs": [],
574
+ "name": "getInstance",
575
+ "outputs": [
335
576
  {
336
- "internalType": "bytes",
577
+ "internalType": "contract IInstance",
578
+ "name": "instance",
579
+ "type": "address"
580
+ }
581
+ ],
582
+ "stateMutability": "view",
583
+ "type": "function"
584
+ },
585
+ {
586
+ "inputs": [],
587
+ "name": "getName",
588
+ "outputs": [
589
+ {
590
+ "internalType": "string",
591
+ "name": "name",
592
+ "type": "string"
593
+ }
594
+ ],
595
+ "stateMutability": "view",
596
+ "type": "function"
597
+ },
598
+ {
599
+ "inputs": [],
600
+ "name": "getNftId",
601
+ "outputs": [
602
+ {
603
+ "internalType": "NftId",
337
604
  "name": "",
338
- "type": "bytes"
605
+ "type": "uint96"
339
606
  }
340
607
  ],
341
608
  "stateMutability": "view",
@@ -343,60 +610,284 @@
343
610
  },
344
611
  {
345
612
  "inputs": [],
346
- "name": "getInstance",
613
+ "name": "getOwner",
347
614
  "outputs": [
348
615
  {
349
- "internalType": "contract IInstance",
350
- "name": "instance",
616
+ "internalType": "address",
617
+ "name": "",
618
+ "type": "address"
619
+ }
620
+ ],
621
+ "stateMutability": "view",
622
+ "type": "function"
623
+ },
624
+ {
625
+ "inputs": [],
626
+ "name": "getPoolNftId",
627
+ "outputs": [
628
+ {
629
+ "internalType": "NftId",
630
+ "name": "poolNftId",
631
+ "type": "uint96"
632
+ }
633
+ ],
634
+ "stateMutability": "view",
635
+ "type": "function"
636
+ },
637
+ {
638
+ "inputs": [],
639
+ "name": "getProductNftId",
640
+ "outputs": [
641
+ {
642
+ "internalType": "NftId",
643
+ "name": "productNftId",
644
+ "type": "uint96"
645
+ }
646
+ ],
647
+ "stateMutability": "view",
648
+ "type": "function"
649
+ },
650
+ {
651
+ "inputs": [],
652
+ "name": "getRegistry",
653
+ "outputs": [
654
+ {
655
+ "internalType": "contract IRegistry",
656
+ "name": "",
657
+ "type": "address"
658
+ }
659
+ ],
660
+ "stateMutability": "view",
661
+ "type": "function"
662
+ },
663
+ {
664
+ "inputs": [],
665
+ "name": "getSetupInfo",
666
+ "outputs": [
667
+ {
668
+ "components": [
669
+ {
670
+ "internalType": "contract IERC20Metadata",
671
+ "name": "token",
672
+ "type": "address"
673
+ },
674
+ {
675
+ "internalType": "contract TokenHandler",
676
+ "name": "tokenHandler",
677
+ "type": "address"
678
+ },
679
+ {
680
+ "internalType": "NftId",
681
+ "name": "distributionNftId",
682
+ "type": "uint96"
683
+ },
684
+ {
685
+ "internalType": "NftId",
686
+ "name": "poolNftId",
687
+ "type": "uint96"
688
+ },
689
+ {
690
+ "components": [
691
+ {
692
+ "internalType": "UFixed",
693
+ "name": "fractionalFee",
694
+ "type": "uint256"
695
+ },
696
+ {
697
+ "internalType": "uint256",
698
+ "name": "fixedFee",
699
+ "type": "uint256"
700
+ }
701
+ ],
702
+ "internalType": "struct Fee",
703
+ "name": "productFee",
704
+ "type": "tuple"
705
+ },
706
+ {
707
+ "components": [
708
+ {
709
+ "internalType": "UFixed",
710
+ "name": "fractionalFee",
711
+ "type": "uint256"
712
+ },
713
+ {
714
+ "internalType": "uint256",
715
+ "name": "fixedFee",
716
+ "type": "uint256"
717
+ }
718
+ ],
719
+ "internalType": "struct Fee",
720
+ "name": "processingFee",
721
+ "type": "tuple"
722
+ },
723
+ {
724
+ "internalType": "bool",
725
+ "name": "isIntercepting",
726
+ "type": "bool"
727
+ },
728
+ {
729
+ "internalType": "address",
730
+ "name": "wallet",
731
+ "type": "address"
732
+ }
733
+ ],
734
+ "internalType": "struct ISetup.ProductSetupInfo",
735
+ "name": "setupInfo",
736
+ "type": "tuple"
737
+ }
738
+ ],
739
+ "stateMutability": "view",
740
+ "type": "function"
741
+ },
742
+ {
743
+ "inputs": [],
744
+ "name": "getToken",
745
+ "outputs": [
746
+ {
747
+ "internalType": "contract IERC20Metadata",
748
+ "name": "token",
749
+ "type": "address"
750
+ }
751
+ ],
752
+ "stateMutability": "view",
753
+ "type": "function"
754
+ },
755
+ {
756
+ "inputs": [],
757
+ "name": "getTokenHandler",
758
+ "outputs": [
759
+ {
760
+ "internalType": "contract TokenHandler",
761
+ "name": "tokenHandler",
762
+ "type": "address"
763
+ }
764
+ ],
765
+ "stateMutability": "view",
766
+ "type": "function"
767
+ },
768
+ {
769
+ "inputs": [],
770
+ "name": "getWallet",
771
+ "outputs": [
772
+ {
773
+ "internalType": "address",
774
+ "name": "walletAddress",
775
+ "type": "address"
776
+ }
777
+ ],
778
+ "stateMutability": "view",
779
+ "type": "function"
780
+ },
781
+ {
782
+ "inputs": [
783
+ {
784
+ "internalType": "address",
785
+ "name": "registry",
786
+ "type": "address"
787
+ },
788
+ {
789
+ "internalType": "NftId",
790
+ "name": "instanceNftId",
791
+ "type": "uint96"
792
+ },
793
+ {
794
+ "internalType": "string",
795
+ "name": "name",
796
+ "type": "string"
797
+ },
798
+ {
799
+ "internalType": "address",
800
+ "name": "token",
801
+ "type": "address"
802
+ },
803
+ {
804
+ "internalType": "ObjectType",
805
+ "name": "componentType",
806
+ "type": "uint8"
807
+ },
808
+ {
809
+ "internalType": "bool",
810
+ "name": "isInterceptor",
811
+ "type": "bool"
812
+ },
813
+ {
814
+ "internalType": "address",
815
+ "name": "initialOwner",
351
816
  "type": "address"
817
+ },
818
+ {
819
+ "internalType": "bytes",
820
+ "name": "registryData",
821
+ "type": "bytes"
352
822
  }
353
823
  ],
354
- "stateMutability": "view",
824
+ "name": "initializeComponent",
825
+ "outputs": [],
826
+ "stateMutability": "nonpayable",
355
827
  "type": "function"
356
828
  },
357
829
  {
358
830
  "inputs": [],
359
- "name": "getNftId",
360
- "outputs": [
361
- {
362
- "internalType": "NftId",
363
- "name": "",
364
- "type": "uint96"
365
- }
366
- ],
367
- "stateMutability": "view",
831
+ "name": "initializeERC165",
832
+ "outputs": [],
833
+ "stateMutability": "nonpayable",
368
834
  "type": "function"
369
835
  },
370
836
  {
371
- "inputs": [],
372
- "name": "getOwner",
373
- "outputs": [
837
+ "inputs": [
374
838
  {
375
839
  "internalType": "address",
376
- "name": "",
840
+ "name": "initialOwner",
841
+ "type": "address"
842
+ },
843
+ {
844
+ "internalType": "address",
845
+ "name": "registryAddress",
377
846
  "type": "address"
378
847
  }
379
848
  ],
380
- "stateMutability": "view",
849
+ "name": "initializeNftOwnable",
850
+ "outputs": [],
851
+ "stateMutability": "nonpayable",
381
852
  "type": "function"
382
853
  },
383
854
  {
384
- "inputs": [],
385
- "name": "getPoolNftId",
386
- "outputs": [
855
+ "inputs": [
856
+ {
857
+ "internalType": "address",
858
+ "name": "registry",
859
+ "type": "address"
860
+ },
387
861
  {
388
862
  "internalType": "NftId",
389
- "name": "poolNftId",
863
+ "name": "instanceNftId",
390
864
  "type": "uint96"
391
- }
392
- ],
393
- "stateMutability": "view",
394
- "type": "function"
395
- },
396
- {
397
- "inputs": [],
398
- "name": "getProcessingFee",
399
- "outputs": [
865
+ },
866
+ {
867
+ "internalType": "string",
868
+ "name": "name",
869
+ "type": "string"
870
+ },
871
+ {
872
+ "internalType": "address",
873
+ "name": "token",
874
+ "type": "address"
875
+ },
876
+ {
877
+ "internalType": "bool",
878
+ "name": "isInterceptor",
879
+ "type": "bool"
880
+ },
881
+ {
882
+ "internalType": "address",
883
+ "name": "pool",
884
+ "type": "address"
885
+ },
886
+ {
887
+ "internalType": "address",
888
+ "name": "distribution",
889
+ "type": "address"
890
+ },
400
891
  {
401
892
  "components": [
402
893
  {
@@ -411,17 +902,9 @@
411
902
  }
412
903
  ],
413
904
  "internalType": "struct Fee",
414
- "name": "processingFee",
905
+ "name": "productFee",
415
906
  "type": "tuple"
416
- }
417
- ],
418
- "stateMutability": "view",
419
- "type": "function"
420
- },
421
- {
422
- "inputs": [],
423
- "name": "getProductFee",
424
- "outputs": [
907
+ },
425
908
  {
426
909
  "components": [
427
910
  {
@@ -436,34 +919,84 @@
436
919
  }
437
920
  ],
438
921
  "internalType": "struct Fee",
439
- "name": "productFee",
922
+ "name": "processingFee",
440
923
  "type": "tuple"
924
+ },
925
+ {
926
+ "internalType": "address",
927
+ "name": "initialOwner",
928
+ "type": "address"
929
+ },
930
+ {
931
+ "internalType": "bytes",
932
+ "name": "registryData",
933
+ "type": "bytes"
441
934
  }
442
935
  ],
443
- "stateMutability": "view",
936
+ "name": "initializeProduct",
937
+ "outputs": [],
938
+ "stateMutability": "nonpayable",
444
939
  "type": "function"
445
940
  },
446
941
  {
447
- "inputs": [],
448
- "name": "getRegistry",
449
- "outputs": [
942
+ "inputs": [
450
943
  {
451
- "internalType": "contract IRegistry",
452
- "name": "",
944
+ "internalType": "address",
945
+ "name": "registryAddress",
946
+ "type": "address"
947
+ },
948
+ {
949
+ "internalType": "NftId",
950
+ "name": "parentNftId",
951
+ "type": "uint96"
952
+ },
953
+ {
954
+ "internalType": "ObjectType",
955
+ "name": "objectType",
956
+ "type": "uint8"
957
+ },
958
+ {
959
+ "internalType": "bool",
960
+ "name": "isInterceptor",
961
+ "type": "bool"
962
+ },
963
+ {
964
+ "internalType": "address",
965
+ "name": "initialOwner",
453
966
  "type": "address"
967
+ },
968
+ {
969
+ "internalType": "bytes",
970
+ "name": "registryData",
971
+ "type": "bytes"
454
972
  }
455
973
  ],
456
- "stateMutability": "view",
974
+ "name": "initializeRegisterable",
975
+ "outputs": [],
976
+ "stateMutability": "nonpayable",
977
+ "type": "function"
978
+ },
979
+ {
980
+ "inputs": [
981
+ {
982
+ "internalType": "address",
983
+ "name": "registryAddress",
984
+ "type": "address"
985
+ }
986
+ ],
987
+ "name": "initializeRegistryLinked",
988
+ "outputs": [],
989
+ "stateMutability": "nonpayable",
457
990
  "type": "function"
458
991
  },
459
992
  {
460
993
  "inputs": [],
461
- "name": "getToken",
994
+ "name": "isConsumingScheduledOp",
462
995
  "outputs": [
463
996
  {
464
- "internalType": "contract IERC20Metadata",
465
- "name": "token",
466
- "type": "address"
997
+ "internalType": "bytes4",
998
+ "name": "",
999
+ "type": "bytes4"
467
1000
  }
468
1001
  ],
469
1002
  "stateMutability": "view",
@@ -471,12 +1004,12 @@
471
1004
  },
472
1005
  {
473
1006
  "inputs": [],
474
- "name": "getWallet",
1007
+ "name": "isNftInterceptor",
475
1008
  "outputs": [
476
1009
  {
477
- "internalType": "address",
478
- "name": "walletAddress",
479
- "type": "address"
1010
+ "internalType": "bool",
1011
+ "name": "isInterceptor",
1012
+ "type": "bool"
480
1013
  }
481
1014
  ],
482
1015
  "stateMutability": "view",
@@ -496,6 +1029,73 @@
496
1029
  "stateMutability": "nonpayable",
497
1030
  "type": "function"
498
1031
  },
1032
+ {
1033
+ "inputs": [
1034
+ {
1035
+ "internalType": "address",
1036
+ "name": "to",
1037
+ "type": "address"
1038
+ },
1039
+ {
1040
+ "internalType": "uint256",
1041
+ "name": "tokenId",
1042
+ "type": "uint256"
1043
+ }
1044
+ ],
1045
+ "name": "nftMint",
1046
+ "outputs": [],
1047
+ "stateMutability": "nonpayable",
1048
+ "type": "function"
1049
+ },
1050
+ {
1051
+ "inputs": [
1052
+ {
1053
+ "internalType": "address",
1054
+ "name": "from",
1055
+ "type": "address"
1056
+ },
1057
+ {
1058
+ "internalType": "address",
1059
+ "name": "to",
1060
+ "type": "address"
1061
+ },
1062
+ {
1063
+ "internalType": "uint256",
1064
+ "name": "tokenId",
1065
+ "type": "uint256"
1066
+ }
1067
+ ],
1068
+ "name": "nftTransferFrom",
1069
+ "outputs": [],
1070
+ "stateMutability": "nonpayable",
1071
+ "type": "function"
1072
+ },
1073
+ {
1074
+ "inputs": [
1075
+ {
1076
+ "internalType": "bytes4",
1077
+ "name": "interfaceId",
1078
+ "type": "bytes4"
1079
+ }
1080
+ ],
1081
+ "name": "registerInterface",
1082
+ "outputs": [],
1083
+ "stateMutability": "nonpayable",
1084
+ "type": "function"
1085
+ },
1086
+ {
1087
+ "inputs": [
1088
+ {
1089
+ "internalType": "address",
1090
+ "name": "newAuthority",
1091
+ "type": "address"
1092
+ }
1093
+ ],
1094
+ "name": "setAuthority",
1095
+ "outputs": [],
1096
+ "stateMutability": "nonpayable",
1097
+ "type": "function"
1098
+ },
499
1099
  {
500
1100
  "inputs": [
501
1101
  {
@@ -538,6 +1138,32 @@
538
1138
  "stateMutability": "nonpayable",
539
1139
  "type": "function"
540
1140
  },
1141
+ {
1142
+ "inputs": [
1143
+ {
1144
+ "internalType": "NftId",
1145
+ "name": "productNftId",
1146
+ "type": "uint96"
1147
+ }
1148
+ ],
1149
+ "name": "setProductNftId",
1150
+ "outputs": [],
1151
+ "stateMutability": "nonpayable",
1152
+ "type": "function"
1153
+ },
1154
+ {
1155
+ "inputs": [
1156
+ {
1157
+ "internalType": "address",
1158
+ "name": "newWallet",
1159
+ "type": "address"
1160
+ }
1161
+ ],
1162
+ "name": "setWallet",
1163
+ "outputs": [],
1164
+ "stateMutability": "nonpayable",
1165
+ "type": "function"
1166
+ },
541
1167
  {
542
1168
  "inputs": [
543
1169
  {
@@ -565,50 +1191,8 @@
565
1191
  "type": "function"
566
1192
  }
567
1193
  ],
568
- "bytecode": "0x60806040523480156200001157600080fd5b5060405162002618380380620026188339810160408190526200003491620008cc565b888888606e6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff191660011790558985600280546001600160a01b03191633179055604080516020810190915260008152620000a88787868686866200054a565b6000620000bd6001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03891660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa1580156200010d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262000137919081019062000a36565b6080810151600780546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b8152630de7806f60e41b6004820152919250906301ffc9a790602401602060405180830381865afa1580156200019f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001c5919062000b1c565b620001f15760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b600760009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000245573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200026b919062000b41565b600380546001600160a01b03199081166001600160a01b0393841617909155600580543090831617905560068054909116918816919091179055631b1599eb60e21b60009081526020527f82dc1aafdf8e16d475718790c9464a2912866acb395e292abd1ea37be80f5b28805460ff191660011790555050505050505050600760009054906101000a90046001600160a01b03166001600160a01b0316634288121d6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200033d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000363919062000b41565b600880546001600160a01b03199081166001600160a01b0393841617909155600980548216888416179055600a80549091168683161790558351600b55602080850151600c558351600d55830151600e5560015416600954604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e90602401602060405180830381865afa15801562000402573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000428919062000b61565b600f80546001600160601b0319166001600160601b03929092169190911790556200045b6001546001600160a01b031690565b600a54604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e90602401602060405180830381865afa158015620004a5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004cb919062000b61565b600f80546001600160601b03929092166c0100000000000000000000000002600160601b600160c01b03199092169190911790556379fc0e7160e11b60009081526020527fae37458bb8945ae7571d1722238fea83f3c5619cf829a972c67f136a0bac29d2805460ff1916600117905550505050505050505062000cda565b6200055682876200061b565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166001600160681b0319909116176c0100000000000000000000000060ff8816021760ff60681b19166d010000000000000000000000000086151502178155905060018101620005d5838262000c0e565b506303fb044760e21b60009081526020527fb43e4f3791bfcdefa3a0fbe2a5555f8d6490b90e01de0ff40c66f18b49b562c5805460ff1916600117905550505050505050565b600280546001600160a01b0319166001600160a01b038416179055620006418162000645565b5050565b6001546001600160a01b031615620006805760015460405163fcdbf2d960e01b81526001600160a01b039091166004820152602401620001e8565b6001600160a01b038116620006a85760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003620006e05760405163fdeac91f60e01b81526001600160a01b0382166004820152602401620001e8565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152632c1c764b60e11b60048201526301ffc9a790602401602060405180830381865afa9250505080156200075d575060408051601f3d908101601f191682019092526200075a9181019062000b1c565b60015b620007875760405163fdeac91f60e01b81526001600160a01b0382166004820152602401620001e8565b80620006415760405163fdeac91f60e01b81526001600160a01b0383166004820152602401620001e8565b50565b6001600160a01b0381168114620007b257600080fd5b8051620007d881620007b5565b919050565b80516001600160601b0381168114620007d857600080fd5b80518015158114620007d857600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b038111828210171562000841576200084162000806565b60405290565b604051601f8201601f191681016001600160401b038111828210171562000872576200087262000806565b604052919050565b6000604082840312156200088d57600080fd5b604080519081016001600160401b0381118282101715620008b257620008b262000806565b604052825181526020928301519281019290925250919050565b60008060008060008060008060006101608a8c031215620008ec57600080fd5b8951620008f981620007b5565b98506200090960208b01620007dd565b975060408a01516200091b81620007b5565b96506200092b60608b01620007f5565b955060808a01516200093d81620007b5565b60a08b01519095506200095081620007b5565b9350620009618b60c08c016200087a565b9250620009738b6101008c016200087a565b91506101408a01516200098681620007b5565b809150509295985092959850929598565b805160ff81168114620007d857600080fd5b600082601f830112620009bb57600080fd5b81516001600160401b03811115620009d757620009d762000806565b6020620009ed601f8301601f1916820162000847565b828152858284870101111562000a0257600080fd5b60005b8381101562000a2257858101830151828201840152820162000a05565b506000928101909101919091529392505050565b60006020828403121562000a4957600080fd5b81516001600160401b038082111562000a6157600080fd5b9083019060e0828603121562000a7657600080fd5b62000a806200081c565b62000a8b83620007dd565b815262000a9b60208401620007dd565b602082015262000aae6040840162000997565b604082015262000ac160608401620007f5565b606082015262000ad460808401620007cb565b608082015262000ae760a08401620007cb565b60a082015260c08301518281111562000aff57600080fd5b62000b0d87828601620009a9565b60c08301525095945050505050565b60006020828403121562000b2f57600080fd5b62000b3a82620007f5565b9392505050565b60006020828403121562000b5457600080fd5b815162000b3a81620007b5565b60006020828403121562000b7457600080fd5b62000b3a82620007dd565b600181811c9082168062000b9457607f821691505b60208210810362000bb557634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000c0957600081815260208120601f850160051c8101602086101562000be45750805b601f850160051c820191505b8181101562000c055782815560010162000bf0565b5050505b505050565b81516001600160401b0381111562000c2a5762000c2a62000806565b62000c428162000c3b845462000b7f565b8462000bbb565b602080601f83116001811462000c7a576000841562000c615750858301515b600019600386901b1c1916600185901b17855562000c05565b600085815260208120601f198616915b8281101562000cab5788860151825594840194600190910190840162000c8a565b508582101562000cca5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61192e8062000cea6000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c80635ab1bd53116100ad578063b6b412ba11610071578063b6b412ba14610295578063daafed40146102a8578063db6dcc95146102b0578063de7b5d14146102b8578063f83d08ba146102c957600080fd5b80635ab1bd53146102495780635e78426b1461025a578063644c45e01461026d578063893d20e814610285578063a69df4b51461028d57600080fd5b80631380bf23116100f45780631380bf23146101c4578063138461e0146101e75780631bdd6b76146101f15780631eff4b221461021157806321df0da71461023857600080fd5b806301ffc9a7146101265780630fec111c1461016857806312abb9b31461017e578063132996041461019f575b600080fd5b610153610134366004610f7b565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6101706102d1565b60405161015f929190610ffc565b61019161018c3660046111fd565b6104fb565b60405190815260200161015f565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161015f565b6101cc610587565b6040805182518152602092830151928101929092520161015f565b6101ef6106c8565b005b6101f96108ea565b6040516001600160601b03909116815260200161015f565b6101917f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b6006546001600160a01b03166101ac565b6001546001600160a01b03166101ac565b610191610268366004611286565b610971565b600154600160a01b90046001600160601b03166101f9565b6101ac610987565b6101ef610aa0565b6101ef6102a3366004611319565b610b4e565b6101cc610c04565b6101f9610d45565b6007546001600160a01b03166101ac565b6101ef610d8a565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c08201819052909180610315610e07565b91509150600080600960009054906101000a90046001600160a01b03166001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa15801561036f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261039791908101906113ec565b915091506000806000838060200190518101906103b49190611515565b6040805161012081018252600f546001600160601b038082168352600160601b909104166020808301919091526006546001600160a01b03168284015282518084018452600b548152600c5481830152606083015282518084018452600d548152600e5491810191909152608082015260a0810185905260c0810184905260e081018390528151632bd182d360e01b81528251959b509399509197508d96509094506101008501935073__$a23651848365a6a5ca15f07b4331037f48$__92632bd182d39260048082019392918290030181865af415801561049a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104be91906115b9565b90526005546040516104dd92916001600160a01b0316906020016115d5565b60405160208183030381529060405298509850505050505050509091565b600854604051639cdaa7f960e01b81526000916001600160a01b031690639cdaa7f9906105369089908b908a908a9089908b906004016116cb565b60a060405180830381865afa158015610553573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105779190611722565b50929a9950505050505050505050565b6040805180820190915260008082526020820152600154600090600160a01b90046001600160601b031660075460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa158015610603573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106279190611762565b156106ac5760075460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa15801561067e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106a2919061177d565b6060015191505090565b505060408051808201909152600b548152600c54602082015290565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561072a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074e9190611762565b15610795576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166107be5760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610807573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082b9190611762565b610853576040516372657a5160e01b81526001600160a01b038216600482015260240161078c565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa15801561089d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c1919061183c565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b60006108fe6001546001600160a01b031690565b600954604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e906024015b602060405180830381865afa158015610948573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096c919061183c565b905090565b600061097e600a86611859565b95945050505050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156109ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a109190611762565b15610a9057600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa158015610a6c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096c919061187b565b506002546001600160a01b031690565b6000610aaa610987565b90506001600160a01b03811615801590610acd5750336001600160a01b03821614155b15610aed5760405163700dd81160e01b815233600482015260240161078c565b600354604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b158015610b3357600080fd5b505af1158015610b47573d6000803e3d6000fd5b5050505050565b6000610b58610987565b90506001600160a01b03811615801590610b7b5750336001600160a01b03821614155b15610b9b5760405163700dd81160e01b815233600482015260240161078c565b600854604051635b5a095d60e11b81526001600160a01b039091169063b6b412ba90610bcd9086908690600401611898565b600060405180830381600087803b158015610be757600080fd5b505af1158015610bfb573d6000803e3d6000fd5b50505050505050565b6040805180820190915260008082526020820152600154600090600160a01b90046001600160601b031660075460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa158015610c80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca49190611762565b15610d295760075460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa158015610cfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1f919061177d565b6080015191505090565b505060408051808201909152600d548152600e54602082015290565b6000610d596001546001600160a01b031690565b600a54604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e9060240161092b565b6000610d94610987565b90506001600160a01b03811615801590610db75750336001600160a01b03821614155b15610dd75760405163700dd81160e01b815233600482015260240161078c565b60035460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610b19565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c0810191909152606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610e7c600090565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610ec4610987565b6001600160a01b03168152602001826001018054610ee1906118be565b80601f0160208091040260200160405190810160405280929190818152602001828054610f0d906118be565b8015610f5a5780601f10610f2f57610100808354040283529160200191610f5a565b820191906000526020600020905b815481529060010190602001808311610f3d57829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b600060208284031215610f8d57600080fd5b81356001600160e01b031981168114610fa557600080fd5b9392505050565b60005b83811015610fc7578181015183820152602001610faf565b50506000910152565b60008151808452610fe8816020860160208601610fac565b601f01601f19169290920160200192915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff6040850151166080830152606084015161104060a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e0610100840152611086610120840182610fd0565b9050828103602084015261097e8185610fd0565b6001600160c01b0319811681146110b057600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156110ec576110ec6110b3565b60405290565b60405160e0810167ffffffffffffffff811182821017156110ec576110ec6110b3565b604051610120810167ffffffffffffffff811182821017156110ec576110ec6110b3565b604051601f8201601f1916810167ffffffffffffffff81118282101715611162576111626110b3565b604052919050565b600067ffffffffffffffff821115611184576111846110b3565b50601f01601f191660200190565b600082601f8301126111a357600080fd5b81356111b66111b18261116a565b611139565b8181528460208386010111156111cb57600080fd5b816020850160208301376000918101602001919091529392505050565b6001600160601b03811681146110b057600080fd5b60008060008060008060c0878903121561121657600080fd5b8635955060208701356112288161109a565b945060408701359350606087013567ffffffffffffffff81111561124b57600080fd5b61125789828a01611192565b93505060808701356112688161109a565b915060a0870135611278816111e8565b809150509295509295509295565b6000806000806080858703121561129c57600080fd5b8435935060208501356112ae8161109a565b925060408501359150606085013567ffffffffffffffff8111156112d157600080fd5b6112dd87828801611192565b91505092959194509250565b6000604082840312156112fb57600080fd5b6113036110c9565b9050813581526020820135602082015292915050565b6000806080838503121561132c57600080fd5b61133684846112e9565b915061134584604085016112e9565b90509250929050565b8051611359816111e8565b919050565b805160ff8116811461135957600080fd5b8051801515811461135957600080fd5b6001600160a01b03811681146110b057600080fd5b80516113598161137f565b600082601f8301126113b057600080fd5b81516113be6111b18261116a565b8181528460208386010111156113d357600080fd5b6113e4826020830160208701610fac565b949350505050565b600080604083850312156113ff57600080fd5b825167ffffffffffffffff8082111561141757600080fd5b9084019060e0828703121561142b57600080fd5b6114336110f2565b61143c8361134e565b815261144a6020840161134e565b602082015261145b6040840161135e565b604082015261146c6060840161136f565b606082015261147d60808401611394565b608082015261148e60a08401611394565b60a082015260c0830151828111156114a557600080fd5b6114b18882860161139f565b60c08301525060208601519094509150808211156114ce57600080fd5b506114db8582860161139f565b9150509250929050565b6000604082840312156114f757600080fd5b6114ff6110c9565b9050815181526020820151602082015292915050565b60008060008060008086880361014081121561153057600080fd5b604081121561153e57600080fd5b506115476110c9565b6115508861136f565b81526020880151602082015280965050604087015161156e8161137f565b606088015190955061157f8161137f565b935061158e88608089016114e5565b925061159d8860c089016114e5565b91506115ad8861010089016114e5565b90509295509295509295565b6000604082840312156115cb57600080fd5b610fa583836114e5565b82516001600160601b03168152602080840151610200830191611602908401826001600160601b03169052565b50604084015161161d60408401826001600160a01b03169052565b50606084015161163a606084018280518252602090810151910152565b506080840151805160a0840152602081015160c08401525060a0840151805160e084015260208101516101008401525060c0840151805161012084015260208101516101408401525060e0840151805161016084015260208101516101808401525061010084015180516101a084015260208101516101c0840152506001600160a01b0383166101e0830152610fa5565b600067ffffffffffffffff60c01b808916835287602084015286604084015260c060608401526116fe60c0840187610fd0565b6001600160601b039590951660808401529290921660a09091015250949350505050565b600080600080600060a0868803121561173a57600080fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b60006020828403121561177457600080fd5b610fa58261136f565b60006101e0828403121561179057600080fd5b611798611115565b6117a18361134e565b81526117af6020840161134e565b60208201526117c060408401611394565b60408201526117d284606085016114e5565b60608201526117e48460a085016114e5565b60808201526117f68460e085016114e5565b60a08201526118098461012085016114e5565b60c082015261181c8461016085016114e5565b60e082015261182f846101a085016114e5565b6101008201529392505050565b60006020828403121561184e57600080fd5b8151610fa5816111e8565b60008261187657634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561188d57600080fd5b8151610fa58161137f565b825181526020808401518183015282516040830152820151606082015260808101610fa5565b600181811c908216806118d257607f821691505b6020821081036118f257634e487b7160e01b600052602260045260246000fd5b5091905056fea2646970667358221220465ab3938a5adbc6d018d850038e33e877ef67fee7f9438882db380e2f6ba81d64736f6c63430008140033",
569
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101215760003560e01c80635ab1bd53116100ad578063b6b412ba11610071578063b6b412ba14610295578063daafed40146102a8578063db6dcc95146102b0578063de7b5d14146102b8578063f83d08ba146102c957600080fd5b80635ab1bd53146102495780635e78426b1461025a578063644c45e01461026d578063893d20e814610285578063a69df4b51461028d57600080fd5b80631380bf23116100f45780631380bf23146101c4578063138461e0146101e75780631bdd6b76146101f15780631eff4b221461021157806321df0da71461023857600080fd5b806301ffc9a7146101265780630fec111c1461016857806312abb9b31461017e578063132996041461019f575b600080fd5b610153610134366004610f7b565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6101706102d1565b60405161015f929190610ffc565b61019161018c3660046111fd565b6104fb565b60405190815260200161015f565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161015f565b6101cc610587565b6040805182518152602092830151928101929092520161015f565b6101ef6106c8565b005b6101f96108ea565b6040516001600160601b03909116815260200161015f565b6101917f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b6006546001600160a01b03166101ac565b6001546001600160a01b03166101ac565b610191610268366004611286565b610971565b600154600160a01b90046001600160601b03166101f9565b6101ac610987565b6101ef610aa0565b6101ef6102a3366004611319565b610b4e565b6101cc610c04565b6101f9610d45565b6007546001600160a01b03166101ac565b6101ef610d8a565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c08201819052909180610315610e07565b91509150600080600960009054906101000a90046001600160a01b03166001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa15801561036f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261039791908101906113ec565b915091506000806000838060200190518101906103b49190611515565b6040805161012081018252600f546001600160601b038082168352600160601b909104166020808301919091526006546001600160a01b03168284015282518084018452600b548152600c5481830152606083015282518084018452600d548152600e5491810191909152608082015260a0810185905260c0810184905260e081018390528151632bd182d360e01b81528251959b509399509197508d96509094506101008501935073__$a23651848365a6a5ca15f07b4331037f48$__92632bd182d39260048082019392918290030181865af415801561049a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104be91906115b9565b90526005546040516104dd92916001600160a01b0316906020016115d5565b60405160208183030381529060405298509850505050505050509091565b600854604051639cdaa7f960e01b81526000916001600160a01b031690639cdaa7f9906105369089908b908a908a9089908b906004016116cb565b60a060405180830381865afa158015610553573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105779190611722565b50929a9950505050505050505050565b6040805180820190915260008082526020820152600154600090600160a01b90046001600160601b031660075460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa158015610603573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106279190611762565b156106ac5760075460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa15801561067e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106a2919061177d565b6060015191505090565b505060408051808201909152600b548152600c54602082015290565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561072a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074e9190611762565b15610795576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166107be5760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610807573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082b9190611762565b610853576040516372657a5160e01b81526001600160a01b038216600482015260240161078c565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa15801561089d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c1919061183c565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b60006108fe6001546001600160a01b031690565b600954604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e906024015b602060405180830381865afa158015610948573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096c919061183c565b905090565b600061097e600a86611859565b95945050505050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156109ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a109190611762565b15610a9057600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa158015610a6c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096c919061187b565b506002546001600160a01b031690565b6000610aaa610987565b90506001600160a01b03811615801590610acd5750336001600160a01b03821614155b15610aed5760405163700dd81160e01b815233600482015260240161078c565b600354604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b158015610b3357600080fd5b505af1158015610b47573d6000803e3d6000fd5b5050505050565b6000610b58610987565b90506001600160a01b03811615801590610b7b5750336001600160a01b03821614155b15610b9b5760405163700dd81160e01b815233600482015260240161078c565b600854604051635b5a095d60e11b81526001600160a01b039091169063b6b412ba90610bcd9086908690600401611898565b600060405180830381600087803b158015610be757600080fd5b505af1158015610bfb573d6000803e3d6000fd5b50505050505050565b6040805180820190915260008082526020820152600154600090600160a01b90046001600160601b031660075460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa158015610c80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca49190611762565b15610d295760075460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa158015610cfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1f919061177d565b6080015191505090565b505060408051808201909152600d548152600e54602082015290565b6000610d596001546001600160a01b031690565b600a54604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e9060240161092b565b6000610d94610987565b90506001600160a01b03811615801590610db75750336001600160a01b03821614155b15610dd75760405163700dd81160e01b815233600482015260240161078c565b60035460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610b19565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c0810191909152606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610e7c600090565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610ec4610987565b6001600160a01b03168152602001826001018054610ee1906118be565b80601f0160208091040260200160405190810160405280929190818152602001828054610f0d906118be565b8015610f5a5780601f10610f2f57610100808354040283529160200191610f5a565b820191906000526020600020905b815481529060010190602001808311610f3d57829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b600060208284031215610f8d57600080fd5b81356001600160e01b031981168114610fa557600080fd5b9392505050565b60005b83811015610fc7578181015183820152602001610faf565b50506000910152565b60008151808452610fe8816020860160208601610fac565b601f01601f19169290920160200192915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff6040850151166080830152606084015161104060a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e0610100840152611086610120840182610fd0565b9050828103602084015261097e8185610fd0565b6001600160c01b0319811681146110b057600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156110ec576110ec6110b3565b60405290565b60405160e0810167ffffffffffffffff811182821017156110ec576110ec6110b3565b604051610120810167ffffffffffffffff811182821017156110ec576110ec6110b3565b604051601f8201601f1916810167ffffffffffffffff81118282101715611162576111626110b3565b604052919050565b600067ffffffffffffffff821115611184576111846110b3565b50601f01601f191660200190565b600082601f8301126111a357600080fd5b81356111b66111b18261116a565b611139565b8181528460208386010111156111cb57600080fd5b816020850160208301376000918101602001919091529392505050565b6001600160601b03811681146110b057600080fd5b60008060008060008060c0878903121561121657600080fd5b8635955060208701356112288161109a565b945060408701359350606087013567ffffffffffffffff81111561124b57600080fd5b61125789828a01611192565b93505060808701356112688161109a565b915060a0870135611278816111e8565b809150509295509295509295565b6000806000806080858703121561129c57600080fd5b8435935060208501356112ae8161109a565b925060408501359150606085013567ffffffffffffffff8111156112d157600080fd5b6112dd87828801611192565b91505092959194509250565b6000604082840312156112fb57600080fd5b6113036110c9565b9050813581526020820135602082015292915050565b6000806080838503121561132c57600080fd5b61133684846112e9565b915061134584604085016112e9565b90509250929050565b8051611359816111e8565b919050565b805160ff8116811461135957600080fd5b8051801515811461135957600080fd5b6001600160a01b03811681146110b057600080fd5b80516113598161137f565b600082601f8301126113b057600080fd5b81516113be6111b18261116a565b8181528460208386010111156113d357600080fd5b6113e4826020830160208701610fac565b949350505050565b600080604083850312156113ff57600080fd5b825167ffffffffffffffff8082111561141757600080fd5b9084019060e0828703121561142b57600080fd5b6114336110f2565b61143c8361134e565b815261144a6020840161134e565b602082015261145b6040840161135e565b604082015261146c6060840161136f565b606082015261147d60808401611394565b608082015261148e60a08401611394565b60a082015260c0830151828111156114a557600080fd5b6114b18882860161139f565b60c08301525060208601519094509150808211156114ce57600080fd5b506114db8582860161139f565b9150509250929050565b6000604082840312156114f757600080fd5b6114ff6110c9565b9050815181526020820151602082015292915050565b60008060008060008086880361014081121561153057600080fd5b604081121561153e57600080fd5b506115476110c9565b6115508861136f565b81526020880151602082015280965050604087015161156e8161137f565b606088015190955061157f8161137f565b935061158e88608089016114e5565b925061159d8860c089016114e5565b91506115ad8861010089016114e5565b90509295509295509295565b6000604082840312156115cb57600080fd5b610fa583836114e5565b82516001600160601b03168152602080840151610200830191611602908401826001600160601b03169052565b50604084015161161d60408401826001600160a01b03169052565b50606084015161163a606084018280518252602090810151910152565b506080840151805160a0840152602081015160c08401525060a0840151805160e084015260208101516101008401525060c0840151805161012084015260208101516101408401525060e0840151805161016084015260208101516101808401525061010084015180516101a084015260208101516101c0840152506001600160a01b0383166101e0830152610fa5565b600067ffffffffffffffff60c01b808916835287602084015286604084015260c060608401526116fe60c0840187610fd0565b6001600160601b039590951660808401529290921660a09091015250949350505050565b600080600080600060a0868803121561173a57600080fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b60006020828403121561177457600080fd5b610fa58261136f565b60006101e0828403121561179057600080fd5b611798611115565b6117a18361134e565b81526117af6020840161134e565b60208201526117c060408401611394565b60408201526117d284606085016114e5565b60608201526117e48460a085016114e5565b60808201526117f68460e085016114e5565b60a08201526118098461012085016114e5565b60c082015261181c8461016085016114e5565b60e082015261182f846101a085016114e5565b6101008201529392505050565b60006020828403121561184e57600080fd5b8151610fa5816111e8565b60008261187657634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561188d57600080fd5b8151610fa58161137f565b825181526020808401518183015282516040830152820151606082015260808101610fa5565b600181811c908216806118d257607f821691505b6020821081036118f257634e487b7160e01b600052602260045260246000fd5b5091905056fea2646970667358221220465ab3938a5adbc6d018d850038e33e877ef67fee7f9438882db380e2f6ba81d64736f6c63430008140033",
570
- "linkReferences": {
571
- "contracts/types/Fee.sol": {
572
- "FeeLib": [
573
- {
574
- "length": 20,
575
- "start": 4425
576
- }
577
- ]
578
- },
579
- "contracts/types/NftId.sol": {
580
- "NftIdLib": [
581
- {
582
- "length": 20,
583
- "start": 5082
584
- },
585
- {
586
- "length": 20,
587
- "start": 5788
588
- }
589
- ]
590
- }
591
- },
592
- "deployedLinkReferences": {
593
- "contracts/types/Fee.sol": {
594
- "FeeLib": [
595
- {
596
- "length": 20,
597
- "start": 1119
598
- }
599
- ]
600
- },
601
- "contracts/types/NftId.sol": {
602
- "NftIdLib": [
603
- {
604
- "length": 20,
605
- "start": 1776
606
- },
607
- {
608
- "length": 20,
609
- "start": 2482
610
- }
611
- ]
612
- }
613
- }
1194
+ "bytecode": "0x",
1195
+ "deployedBytecode": "0x",
1196
+ "linkReferences": {},
1197
+ "deployedLinkReferences": {}
614
1198
  }