@etherisc/gif-next 0.0.2-f7be756-963 → 0.0.2-f7eda15-119

Sign up to get free protection for your applications and to get access to all the features.
Files changed (408) hide show
  1. package/README.md +331 -8
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
  3. package/artifacts/contracts/components/Component.sol/Component.json +491 -40
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +849 -0
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → components/IComponent.sol/IComponent.json} +244 -241
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +648 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +769 -0
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +748 -0
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +760 -118
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +738 -135
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
  20. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
  21. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
  22. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
  23. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
  24. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  36. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  39. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  40. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  41. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  42. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  43. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  44. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  45. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
  46. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  47. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
  48. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  49. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1310 -809
  50. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  51. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +586 -0
  52. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  53. package/artifacts/contracts/instance/Instance.sol/Instance.json +2242 -908
  54. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  55. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1034 -0
  56. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  57. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1381 -0
  58. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  59. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1024 -0
  60. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  61. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +473 -0
  62. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  63. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
  64. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  65. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +603 -0
  66. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  67. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
  68. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  69. package/artifacts/contracts/instance/{lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
  70. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  71. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
  72. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  73. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  74. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  75. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
  76. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  77. package/artifacts/contracts/instance/{access/IAccess.sol/IAccess.json → module/IBundle.sol/IBundle.json} +2 -2
  78. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  79. package/artifacts/contracts/instance/{component/IComponent.sol/IComponent.json → module/IDistribution.sol/IDistribution.json} +2 -2
  80. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  81. package/artifacts/contracts/instance/{policy → module}/IPolicy.sol/IPolicy.json +1 -1
  82. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  83. package/artifacts/contracts/instance/{pool/IPoolModule.sol/IPool.json → module/IRisk.sol/IRisk.json} +2 -2
  84. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  85. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.json +10 -0
  86. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  87. package/artifacts/contracts/instance/{treasury → module}/ITreasury.sol/ITreasury.json +1 -1
  88. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  89. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1102 -0
  90. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  91. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +449 -0
  92. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  93. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +772 -0
  94. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  95. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +437 -0
  96. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +715 -0
  98. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  99. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +441 -0
  100. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  101. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +766 -0
  102. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  103. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +494 -0
  104. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +531 -0
  106. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  107. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1227 -0
  108. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  109. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +505 -0
  110. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  111. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +806 -0
  112. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  113. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +437 -0
  114. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  115. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +856 -0
  116. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  117. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +437 -0
  118. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  119. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +239 -2
  120. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  121. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +567 -31
  122. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  123. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +981 -0
  124. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  125. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  126. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  127. package/artifacts/contracts/registry/Registry.sol/Registry.json +644 -74
  128. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  129. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  130. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  131. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1200 -0
  132. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  133. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +464 -0
  134. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  135. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  136. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  137. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +394 -0
  138. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  139. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  140. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  141. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
  142. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  143. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  144. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  145. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +196 -0
  146. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  147. package/artifacts/contracts/shared/IService.sol/IService.json +416 -0
  148. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  149. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +205 -0
  150. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  151. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +171 -0
  152. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  153. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +362 -0
  154. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  155. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +282 -0
  156. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  157. package/artifacts/contracts/shared/Service.sol/Service.json +476 -0
  158. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  159. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  160. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  161. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  162. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  163. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +228 -0
  164. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
  165. package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
  166. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
  167. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +313 -0
  168. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
  169. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
  170. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
  171. package/artifacts/contracts/test/TestService.sol/TestService.json +608 -0
  172. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
  173. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +376 -0
  174. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
  175. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
  176. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
  177. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +286 -0
  178. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  179. package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
  180. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  181. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
  182. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  183. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  184. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  185. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  186. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  187. package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
  188. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  189. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
  190. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  191. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
  192. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  193. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +33 -0
  194. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  195. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  196. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  197. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  198. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  199. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  200. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  201. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  202. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  203. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
  204. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  205. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  206. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  207. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +77 -2
  208. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  209. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  210. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  211. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
  212. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
  213. package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
  214. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
  215. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +49 -0
  216. package/contracts/components/Component.sol +186 -47
  217. package/contracts/components/Distribution.sol +150 -0
  218. package/contracts/components/IComponent.sol +43 -0
  219. package/contracts/components/IDistributionComponent.sol +47 -0
  220. package/contracts/components/IPoolComponent.sol +60 -0
  221. package/contracts/components/IProductComponent.sol +39 -0
  222. package/contracts/components/Pool.sol +200 -25
  223. package/contracts/components/Product.sol +222 -46
  224. package/contracts/experiment/cloning/Cloner.sol +47 -0
  225. package/contracts/instance/BundleManager.sol +125 -0
  226. package/contracts/instance/Cloneable.sol +46 -0
  227. package/contracts/instance/IInstance.sol +71 -24
  228. package/contracts/instance/IInstanceService.sol +41 -0
  229. package/contracts/instance/Instance.sol +248 -51
  230. package/contracts/instance/InstanceAccessManager.sol +298 -0
  231. package/contracts/instance/InstanceReader.sol +293 -0
  232. package/contracts/instance/InstanceService.sol +435 -0
  233. package/contracts/instance/InstanceServiceManager.sol +54 -0
  234. package/contracts/instance/ObjectManager.sol +84 -0
  235. package/contracts/instance/base/ComponentService.sol +134 -0
  236. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  237. package/contracts/instance/base/ILifecycle.sol +30 -0
  238. package/contracts/instance/base/KeyValueStore.sol +172 -0
  239. package/contracts/instance/base/Lifecycle.sol +100 -0
  240. package/contracts/instance/module/IAccess.sol +48 -0
  241. package/contracts/instance/module/IBundle.sol +20 -0
  242. package/contracts/instance/module/IDistribution.sol +39 -0
  243. package/contracts/instance/module/IPolicy.sol +45 -0
  244. package/contracts/instance/module/IRisk.sol +11 -0
  245. package/contracts/instance/module/ISetup.sol +46 -0
  246. package/contracts/instance/module/ITreasury.sol +23 -0
  247. package/contracts/instance/service/BundleService.sol +293 -0
  248. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  249. package/contracts/instance/service/DistributionService.sol +106 -0
  250. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  251. package/contracts/instance/service/IBundleService.sol +44 -0
  252. package/contracts/instance/service/IDistributionService.sol +12 -0
  253. package/contracts/instance/service/IPolicyService.sol +94 -0
  254. package/contracts/instance/service/IPoolService.sol +20 -0
  255. package/contracts/instance/service/IProductService.sol +40 -0
  256. package/contracts/instance/service/PolicyService.sol +538 -0
  257. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  258. package/contracts/instance/service/PoolService.sol +110 -0
  259. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  260. package/contracts/instance/service/ProductService.sol +234 -0
  261. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  262. package/contracts/registry/ChainNft.sol +129 -62
  263. package/contracts/registry/IRegistry.sol +72 -41
  264. package/contracts/registry/IRegistryService.sol +65 -0
  265. package/contracts/registry/ITransferInterceptor.sol +6 -0
  266. package/contracts/registry/Registry.sol +401 -131
  267. package/contracts/registry/RegistryAccessManager.sol +216 -0
  268. package/contracts/registry/RegistryService.sol +262 -0
  269. package/contracts/registry/RegistryServiceManager.sol +62 -0
  270. package/contracts/registry/ReleaseManager.sol +332 -0
  271. package/contracts/registry/TokenRegistry.sol +112 -0
  272. package/contracts/shared/ContractDeployerLib.sol +72 -0
  273. package/contracts/shared/ERC165.sol +25 -0
  274. package/contracts/shared/INftOwnable.sol +22 -0
  275. package/contracts/shared/IRegisterable.sol +15 -0
  276. package/contracts/shared/IService.sol +16 -0
  277. package/contracts/shared/IVersionable.sol +96 -0
  278. package/contracts/shared/NftOwnable.sol +139 -0
  279. package/contracts/shared/ProxyManager.sol +94 -0
  280. package/contracts/shared/Registerable.sol +86 -0
  281. package/contracts/shared/Service.sol +60 -0
  282. package/contracts/shared/TokenHandler.sol +27 -0
  283. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  284. package/contracts/shared/Versionable.sol +147 -0
  285. package/contracts/test/TestFee.sol +25 -0
  286. package/contracts/test/TestRegisterable.sol +18 -0
  287. package/contracts/test/TestRoleId.sol +14 -0
  288. package/contracts/test/TestService.sol +25 -0
  289. package/contracts/{mock/Dip.sol → test/TestToken.sol} +5 -5
  290. package/contracts/test/TestVersion.sol +44 -0
  291. package/contracts/test/TestVersionable.sol +17 -0
  292. package/contracts/{mock → test}/Usdc.sol +1 -1
  293. package/contracts/types/AddressSet.sol +58 -0
  294. package/contracts/types/DistributorType.sol +55 -0
  295. package/contracts/types/Fee.sol +44 -20
  296. package/contracts/types/Key32.sol +50 -0
  297. package/contracts/types/NftId.sol +22 -1
  298. package/contracts/types/NftIdSet.sol +62 -0
  299. package/contracts/types/NumberId.sol +52 -0
  300. package/contracts/types/ObjectType.sol +60 -15
  301. package/contracts/types/Referral.sol +85 -0
  302. package/contracts/types/RiskId.sol +43 -0
  303. package/contracts/types/RoleId.sol +90 -0
  304. package/contracts/types/StateId.sol +18 -4
  305. package/contracts/types/Timestamp.sol +29 -4
  306. package/contracts/types/UFixed.sol +138 -23
  307. package/contracts/types/Version.sol +107 -0
  308. package/package.json +11 -5
  309. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
  310. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
  311. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
  312. package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +0 -255
  313. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
  314. package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -74
  315. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
  316. package/artifacts/contracts/instance/access/Access.sol/AccessModule.json +0 -400
  317. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
  318. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
  319. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
  320. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
  321. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
  322. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  323. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +0 -336
  324. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  325. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.json +0 -299
  326. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
  327. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -202
  328. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
  329. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
  330. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +0 -205
  331. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  332. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -217
  333. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
  334. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -141
  335. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
  336. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +0 -24
  337. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  338. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
  339. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
  340. package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
  341. package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
  342. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  343. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  344. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +0 -254
  345. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  346. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +0 -254
  347. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  348. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  349. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +0 -129
  350. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  351. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +0 -155
  352. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
  353. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
  354. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
  355. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +0 -127
  356. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
  357. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +0 -75
  358. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
  359. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -196
  360. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  361. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  362. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.json +0 -490
  363. package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  364. package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.json +0 -45
  365. package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  366. package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.json +0 -490
  367. package/artifacts/contracts/mock/Dip.sol/DIP.dbg.json +0 -4
  368. package/artifacts/contracts/mock/Dip.sol/DIP.json +0 -338
  369. package/artifacts/contracts/mock/TestPool.sol/TestPool.dbg.json +0 -4
  370. package/artifacts/contracts/mock/TestPool.sol/TestPool.json +0 -294
  371. package/artifacts/contracts/mock/TestProduct.sol/TestProduct.dbg.json +0 -4
  372. package/artifacts/contracts/mock/TestProduct.sol/TestProduct.json +0 -384
  373. package/artifacts/contracts/mock/Usdc.sol/USDC.dbg.json +0 -4
  374. package/artifacts/contracts/mock/Usdc.sol/USDC.json +0 -338
  375. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  376. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
  377. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +0 -24
  378. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
  379. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +0 -166
  380. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
  381. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
  382. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
  383. package/artifacts/contracts/registry/Registry.sol/Registerable.json +0 -166
  384. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
  385. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
  386. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  387. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -479
  388. package/contracts/components/IPool.sol +0 -15
  389. package/contracts/components/IProduct.sol +0 -16
  390. package/contracts/experiment/statemachine/README.md +0 -112
  391. package/contracts/instance/access/Access.sol +0 -165
  392. package/contracts/instance/access/IAccess.sol +0 -63
  393. package/contracts/instance/component/ComponentModule.sol +0 -274
  394. package/contracts/instance/component/IComponent.sol +0 -74
  395. package/contracts/instance/lifecycle/ILifecycle.sol +0 -47
  396. package/contracts/instance/lifecycle/LifecycleModule.sol +0 -88
  397. package/contracts/instance/policy/IPolicy.sol +0 -50
  398. package/contracts/instance/policy/PolicyModule.sol +0 -114
  399. package/contracts/instance/pool/IPoolModule.sol +0 -23
  400. package/contracts/instance/pool/PoolModule.sol +0 -81
  401. package/contracts/instance/product/IProductService.sol +0 -36
  402. package/contracts/instance/product/ProductService.sol +0 -136
  403. package/contracts/instance/treasury/ITreasury.sol +0 -91
  404. package/contracts/instance/treasury/TokenHandler.sol +0 -24
  405. package/contracts/instance/treasury/TreasuryModule.sol +0 -168
  406. package/contracts/mock/TestPool.sol +0 -16
  407. package/contracts/mock/TestProduct.sol +0 -39
  408. package/contracts/registry/IChainNft.sol +0 -21
@@ -3,6 +3,66 @@
3
3
  "contractName": "Product",
4
4
  "sourceName": "contracts/components/Product.sol",
5
5
  "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "authority",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "name": "AccessManagedInvalidAuthority",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "address",
21
+ "name": "caller",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
28
+ }
29
+ ],
30
+ "name": "AccessManagedRequiredDelay",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "caller",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "target",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "AddressEmptyCode",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "address",
59
+ "name": "account",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "name": "AddressInsufficientBalance",
64
+ "type": "error"
65
+ },
6
66
  {
7
67
  "inputs": [
8
68
  {
@@ -10,92 +70,435 @@
10
70
  "name": "registry",
11
71
  "type": "address"
12
72
  },
73
+ {
74
+ "internalType": "NftId",
75
+ "name": "nftId",
76
+ "type": "uint96"
77
+ }
78
+ ],
79
+ "name": "ErrorAlreadyLinked",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "NftId",
86
+ "name": "instanceNftId",
87
+ "type": "uint96"
88
+ },
13
89
  {
14
90
  "internalType": "address",
15
91
  "name": "instance",
16
92
  "type": "address"
93
+ }
94
+ ],
95
+ "name": "ErrorComponentNotInstance",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [
100
+ {
101
+ "internalType": "address",
102
+ "name": "caller",
103
+ "type": "address"
104
+ }
105
+ ],
106
+ "name": "ErrorComponentNotProductService",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "ErrorComponentProductNftAlreadySet",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [
116
+ {
117
+ "internalType": "address",
118
+ "name": "caller",
119
+ "type": "address"
17
120
  },
121
+ {
122
+ "internalType": "uint64",
123
+ "name": "requiredRoleIdNum",
124
+ "type": "uint64"
125
+ }
126
+ ],
127
+ "name": "ErrorComponentUnauthorized",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [
132
+ {
133
+ "internalType": "address",
134
+ "name": "newWallet",
135
+ "type": "address"
136
+ }
137
+ ],
138
+ "name": "ErrorComponentWalletAddressIsSameAsCurrent",
139
+ "type": "error"
140
+ },
141
+ {
142
+ "inputs": [],
143
+ "name": "ErrorComponentWalletAddressZero",
144
+ "type": "error"
145
+ },
146
+ {
147
+ "inputs": [
148
+ {
149
+ "internalType": "address",
150
+ "name": "oldWallet",
151
+ "type": "address"
152
+ },
153
+ {
154
+ "internalType": "address",
155
+ "name": "newWallet",
156
+ "type": "address"
157
+ },
158
+ {
159
+ "internalType": "uint256",
160
+ "name": "allowance",
161
+ "type": "uint256"
162
+ },
163
+ {
164
+ "internalType": "uint256",
165
+ "name": "balance",
166
+ "type": "uint256"
167
+ }
168
+ ],
169
+ "name": "ErrorComponentWalletAllowanceTooSmall",
170
+ "type": "error"
171
+ },
172
+ {
173
+ "inputs": [
174
+ {
175
+ "internalType": "address",
176
+ "name": "contractAddress",
177
+ "type": "address"
178
+ }
179
+ ],
180
+ "name": "ErrorContractNotRegistered",
181
+ "type": "error"
182
+ },
183
+ {
184
+ "inputs": [
185
+ {
186
+ "internalType": "address",
187
+ "name": "account",
188
+ "type": "address"
189
+ }
190
+ ],
191
+ "name": "ErrorNotOwner",
192
+ "type": "error"
193
+ },
194
+ {
195
+ "inputs": [
196
+ {
197
+ "internalType": "address",
198
+ "name": "registryAddress",
199
+ "type": "address"
200
+ }
201
+ ],
202
+ "name": "ErrorNotRegistry",
203
+ "type": "error"
204
+ },
205
+ {
206
+ "inputs": [
207
+ {
208
+ "internalType": "address",
209
+ "name": "registryAddress",
210
+ "type": "address"
211
+ }
212
+ ],
213
+ "name": "ErrorRegisterableNotRegistry",
214
+ "type": "error"
215
+ },
216
+ {
217
+ "inputs": [],
218
+ "name": "ErrorRegistryAddressZero",
219
+ "type": "error"
220
+ },
221
+ {
222
+ "inputs": [
223
+ {
224
+ "internalType": "address",
225
+ "name": "registry",
226
+ "type": "address"
227
+ }
228
+ ],
229
+ "name": "ErrorRegistryAlreadyInitialized",
230
+ "type": "error"
231
+ },
232
+ {
233
+ "inputs": [],
234
+ "name": "ErrorRegistryNotInitialized",
235
+ "type": "error"
236
+ },
237
+ {
238
+ "inputs": [],
239
+ "name": "FailedInnerCall",
240
+ "type": "error"
241
+ },
242
+ {
243
+ "inputs": [],
244
+ "name": "InvalidInitialization",
245
+ "type": "error"
246
+ },
247
+ {
248
+ "inputs": [],
249
+ "name": "NotInitializing",
250
+ "type": "error"
251
+ },
252
+ {
253
+ "inputs": [
18
254
  {
19
255
  "internalType": "address",
20
256
  "name": "token",
21
257
  "type": "address"
258
+ }
259
+ ],
260
+ "name": "SafeERC20FailedOperation",
261
+ "type": "error"
262
+ },
263
+ {
264
+ "anonymous": false,
265
+ "inputs": [
266
+ {
267
+ "indexed": false,
268
+ "internalType": "address",
269
+ "name": "authority",
270
+ "type": "address"
271
+ }
272
+ ],
273
+ "name": "AuthorityUpdated",
274
+ "type": "event"
275
+ },
276
+ {
277
+ "anonymous": false,
278
+ "inputs": [
279
+ {
280
+ "indexed": false,
281
+ "internalType": "uint64",
282
+ "name": "version",
283
+ "type": "uint64"
284
+ }
285
+ ],
286
+ "name": "Initialized",
287
+ "type": "event"
288
+ },
289
+ {
290
+ "anonymous": false,
291
+ "inputs": [
292
+ {
293
+ "indexed": false,
294
+ "internalType": "address",
295
+ "name": "newWallet",
296
+ "type": "address"
297
+ }
298
+ ],
299
+ "name": "LogComponentWalletAddressChanged",
300
+ "type": "event"
301
+ },
302
+ {
303
+ "anonymous": false,
304
+ "inputs": [
305
+ {
306
+ "indexed": false,
307
+ "internalType": "address",
308
+ "name": "from",
309
+ "type": "address"
22
310
  },
23
311
  {
312
+ "indexed": false,
24
313
  "internalType": "address",
25
- "name": "pool",
314
+ "name": "to",
26
315
  "type": "address"
27
316
  },
28
317
  {
29
- "components": [
30
- {
31
- "internalType": "UFixed",
32
- "name": "fractionalFee",
33
- "type": "uint256"
34
- },
35
- {
36
- "internalType": "uint256",
37
- "name": "fixedFee",
38
- "type": "uint256"
39
- }
40
- ],
41
- "internalType": "struct Fee",
42
- "name": "policyFee",
43
- "type": "tuple"
318
+ "indexed": false,
319
+ "internalType": "uint256",
320
+ "name": "amount",
321
+ "type": "uint256"
322
+ }
323
+ ],
324
+ "name": "LogComponentWalletTokensTransferred",
325
+ "type": "event"
326
+ },
327
+ {
328
+ "inputs": [],
329
+ "name": "CONTRACT_LOCATION_V1",
330
+ "outputs": [
331
+ {
332
+ "internalType": "bytes32",
333
+ "name": "",
334
+ "type": "bytes32"
335
+ }
336
+ ],
337
+ "stateMutability": "view",
338
+ "type": "function"
339
+ },
340
+ {
341
+ "inputs": [],
342
+ "name": "REGISTERABLE_LOCATION_V1",
343
+ "outputs": [
344
+ {
345
+ "internalType": "bytes32",
346
+ "name": "",
347
+ "type": "bytes32"
348
+ }
349
+ ],
350
+ "stateMutability": "view",
351
+ "type": "function"
352
+ },
353
+ {
354
+ "inputs": [],
355
+ "name": "authority",
356
+ "outputs": [
357
+ {
358
+ "internalType": "address",
359
+ "name": "",
360
+ "type": "address"
361
+ }
362
+ ],
363
+ "stateMutability": "view",
364
+ "type": "function"
365
+ },
366
+ {
367
+ "inputs": [
368
+ {
369
+ "internalType": "uint256",
370
+ "name": "sumInsuredAmount",
371
+ "type": "uint256"
44
372
  },
45
373
  {
46
- "components": [
47
- {
48
- "internalType": "UFixed",
49
- "name": "fractionalFee",
50
- "type": "uint256"
51
- },
52
- {
53
- "internalType": "uint256",
54
- "name": "fixedFee",
55
- "type": "uint256"
56
- }
57
- ],
58
- "internalType": "struct Fee",
59
- "name": "processingFee",
60
- "type": "tuple"
374
+ "internalType": "RiskId",
375
+ "name": "riskId",
376
+ "type": "bytes8"
377
+ },
378
+ {
379
+ "internalType": "uint256",
380
+ "name": "lifetime",
381
+ "type": "uint256"
382
+ },
383
+ {
384
+ "internalType": "bytes",
385
+ "name": "applicationData",
386
+ "type": "bytes"
387
+ }
388
+ ],
389
+ "name": "calculateNetPremium",
390
+ "outputs": [
391
+ {
392
+ "internalType": "uint256",
393
+ "name": "netPremiumAmount",
394
+ "type": "uint256"
61
395
  }
62
396
  ],
63
- "stateMutability": "nonpayable",
64
- "type": "constructor"
397
+ "stateMutability": "view",
398
+ "type": "function"
65
399
  },
66
400
  {
67
- "anonymous": false,
68
401
  "inputs": [
69
402
  {
70
- "indexed": false,
71
403
  "internalType": "uint256",
72
- "name": "idx",
404
+ "name": "sumInsuredAmount",
73
405
  "type": "uint256"
74
406
  },
75
407
  {
76
- "indexed": false,
77
- "internalType": "address",
78
- "name": "module",
79
- "type": "address"
408
+ "internalType": "RiskId",
409
+ "name": "riskId",
410
+ "type": "bytes8"
80
411
  },
81
412
  {
82
- "indexed": false,
83
- "internalType": "string",
84
- "name": "comment",
85
- "type": "string"
413
+ "internalType": "uint256",
414
+ "name": "lifetime",
415
+ "type": "uint256"
416
+ },
417
+ {
418
+ "internalType": "bytes",
419
+ "name": "applicationData",
420
+ "type": "bytes"
421
+ },
422
+ {
423
+ "internalType": "NftId",
424
+ "name": "bundleNftId",
425
+ "type": "uint96"
426
+ },
427
+ {
428
+ "internalType": "ReferralId",
429
+ "name": "referralId",
430
+ "type": "bytes8"
86
431
  }
87
432
  ],
88
- "name": "LogDebug",
89
- "type": "event"
433
+ "name": "calculatePremium",
434
+ "outputs": [
435
+ {
436
+ "internalType": "uint256",
437
+ "name": "premiumAmount",
438
+ "type": "uint256"
439
+ }
440
+ ],
441
+ "stateMutability": "view",
442
+ "type": "function"
90
443
  },
91
444
  {
92
445
  "inputs": [],
93
- "name": "getData",
446
+ "name": "getDistributionNftId",
94
447
  "outputs": [
95
448
  {
96
- "internalType": "bytes",
97
- "name": "data",
98
- "type": "bytes"
449
+ "internalType": "NftId",
450
+ "name": "distributionNftId",
451
+ "type": "uint96"
452
+ }
453
+ ],
454
+ "stateMutability": "view",
455
+ "type": "function"
456
+ },
457
+ {
458
+ "inputs": [],
459
+ "name": "getInitialInfo",
460
+ "outputs": [
461
+ {
462
+ "components": [
463
+ {
464
+ "internalType": "NftId",
465
+ "name": "nftId",
466
+ "type": "uint96"
467
+ },
468
+ {
469
+ "internalType": "NftId",
470
+ "name": "parentNftId",
471
+ "type": "uint96"
472
+ },
473
+ {
474
+ "internalType": "ObjectType",
475
+ "name": "objectType",
476
+ "type": "uint8"
477
+ },
478
+ {
479
+ "internalType": "bool",
480
+ "name": "isInterceptor",
481
+ "type": "bool"
482
+ },
483
+ {
484
+ "internalType": "address",
485
+ "name": "objectAddress",
486
+ "type": "address"
487
+ },
488
+ {
489
+ "internalType": "address",
490
+ "name": "initialOwner",
491
+ "type": "address"
492
+ },
493
+ {
494
+ "internalType": "bytes",
495
+ "name": "data",
496
+ "type": "bytes"
497
+ }
498
+ ],
499
+ "internalType": "struct IRegistry.ObjectInfo",
500
+ "name": "info",
501
+ "type": "tuple"
99
502
  }
100
503
  ],
101
504
  "stateMutability": "view",
@@ -107,7 +510,7 @@
107
510
  "outputs": [
108
511
  {
109
512
  "internalType": "address",
110
- "name": "deployer",
513
+ "name": "",
111
514
  "type": "address"
112
515
  }
113
516
  ],
@@ -129,12 +532,12 @@
129
532
  },
130
533
  {
131
534
  "inputs": [],
132
- "name": "getNftId",
535
+ "name": "getInstanceService",
133
536
  "outputs": [
134
537
  {
135
- "internalType": "NftId",
136
- "name": "nftId",
137
- "type": "uint96"
538
+ "internalType": "contract IInstanceService",
539
+ "name": "",
540
+ "type": "address"
138
541
  }
139
542
  ],
140
543
  "stateMutability": "view",
@@ -142,12 +545,12 @@
142
545
  },
143
546
  {
144
547
  "inputs": [],
145
- "name": "getOwner",
548
+ "name": "getName",
146
549
  "outputs": [
147
550
  {
148
- "internalType": "address",
149
- "name": "owner",
150
- "type": "address"
551
+ "internalType": "string",
552
+ "name": "name",
553
+ "type": "string"
151
554
  }
152
555
  ],
153
556
  "stateMutability": "view",
@@ -155,7 +558,7 @@
155
558
  },
156
559
  {
157
560
  "inputs": [],
158
- "name": "getParentNftId",
561
+ "name": "getNftId",
159
562
  "outputs": [
160
563
  {
161
564
  "internalType": "NftId",
@@ -168,24 +571,12 @@
168
571
  },
169
572
  {
170
573
  "inputs": [],
171
- "name": "getPolicyFee",
574
+ "name": "getOwner",
172
575
  "outputs": [
173
576
  {
174
- "components": [
175
- {
176
- "internalType": "UFixed",
177
- "name": "fractionalFee",
178
- "type": "uint256"
179
- },
180
- {
181
- "internalType": "uint256",
182
- "name": "fixedFee",
183
- "type": "uint256"
184
- }
185
- ],
186
- "internalType": "struct Fee",
187
- "name": "policyFee",
188
- "type": "tuple"
577
+ "internalType": "address",
578
+ "name": "",
579
+ "type": "address"
189
580
  }
190
581
  ],
191
582
  "stateMutability": "view",
@@ -206,24 +597,25 @@
206
597
  },
207
598
  {
208
599
  "inputs": [],
209
- "name": "getProcessingFee",
600
+ "name": "getProductNftId",
210
601
  "outputs": [
211
602
  {
212
- "components": [
213
- {
214
- "internalType": "UFixed",
215
- "name": "fractionalFee",
216
- "type": "uint256"
217
- },
218
- {
219
- "internalType": "uint256",
220
- "name": "fixedFee",
221
- "type": "uint256"
222
- }
223
- ],
224
- "internalType": "struct Fee",
225
- "name": "processingFee",
226
- "type": "tuple"
603
+ "internalType": "NftId",
604
+ "name": "productNftId",
605
+ "type": "uint96"
606
+ }
607
+ ],
608
+ "stateMutability": "view",
609
+ "type": "function"
610
+ },
611
+ {
612
+ "inputs": [],
613
+ "name": "getProductService",
614
+ "outputs": [
615
+ {
616
+ "internalType": "contract IProductService",
617
+ "name": "",
618
+ "type": "address"
227
619
  }
228
620
  ],
229
621
  "stateMutability": "view",
@@ -235,7 +627,7 @@
235
627
  "outputs": [
236
628
  {
237
629
  "internalType": "contract IRegistry",
238
- "name": "registry",
630
+ "name": "",
239
631
  "type": "address"
240
632
  }
241
633
  ],
@@ -244,12 +636,146 @@
244
636
  },
245
637
  {
246
638
  "inputs": [],
247
- "name": "getToken",
639
+ "name": "getSetupInfo",
248
640
  "outputs": [
249
641
  {
250
- "internalType": "contract IERC20Metadata",
251
- "name": "token",
252
- "type": "address"
642
+ "components": [
643
+ {
644
+ "internalType": "contract IERC20Metadata",
645
+ "name": "token",
646
+ "type": "address"
647
+ },
648
+ {
649
+ "internalType": "contract TokenHandler",
650
+ "name": "tokenHandler",
651
+ "type": "address"
652
+ },
653
+ {
654
+ "internalType": "NftId",
655
+ "name": "distributionNftId",
656
+ "type": "uint96"
657
+ },
658
+ {
659
+ "internalType": "NftId",
660
+ "name": "poolNftId",
661
+ "type": "uint96"
662
+ },
663
+ {
664
+ "components": [
665
+ {
666
+ "internalType": "UFixed",
667
+ "name": "fractionalFee",
668
+ "type": "uint256"
669
+ },
670
+ {
671
+ "internalType": "uint256",
672
+ "name": "fixedFee",
673
+ "type": "uint256"
674
+ }
675
+ ],
676
+ "internalType": "struct Fee",
677
+ "name": "distributionFee",
678
+ "type": "tuple"
679
+ },
680
+ {
681
+ "components": [
682
+ {
683
+ "internalType": "UFixed",
684
+ "name": "fractionalFee",
685
+ "type": "uint256"
686
+ },
687
+ {
688
+ "internalType": "uint256",
689
+ "name": "fixedFee",
690
+ "type": "uint256"
691
+ }
692
+ ],
693
+ "internalType": "struct Fee",
694
+ "name": "productFee",
695
+ "type": "tuple"
696
+ },
697
+ {
698
+ "components": [
699
+ {
700
+ "internalType": "UFixed",
701
+ "name": "fractionalFee",
702
+ "type": "uint256"
703
+ },
704
+ {
705
+ "internalType": "uint256",
706
+ "name": "fixedFee",
707
+ "type": "uint256"
708
+ }
709
+ ],
710
+ "internalType": "struct Fee",
711
+ "name": "processingFee",
712
+ "type": "tuple"
713
+ },
714
+ {
715
+ "components": [
716
+ {
717
+ "internalType": "UFixed",
718
+ "name": "fractionalFee",
719
+ "type": "uint256"
720
+ },
721
+ {
722
+ "internalType": "uint256",
723
+ "name": "fixedFee",
724
+ "type": "uint256"
725
+ }
726
+ ],
727
+ "internalType": "struct Fee",
728
+ "name": "poolFee",
729
+ "type": "tuple"
730
+ },
731
+ {
732
+ "components": [
733
+ {
734
+ "internalType": "UFixed",
735
+ "name": "fractionalFee",
736
+ "type": "uint256"
737
+ },
738
+ {
739
+ "internalType": "uint256",
740
+ "name": "fixedFee",
741
+ "type": "uint256"
742
+ }
743
+ ],
744
+ "internalType": "struct Fee",
745
+ "name": "stakingFee",
746
+ "type": "tuple"
747
+ },
748
+ {
749
+ "components": [
750
+ {
751
+ "internalType": "UFixed",
752
+ "name": "fractionalFee",
753
+ "type": "uint256"
754
+ },
755
+ {
756
+ "internalType": "uint256",
757
+ "name": "fixedFee",
758
+ "type": "uint256"
759
+ }
760
+ ],
761
+ "internalType": "struct Fee",
762
+ "name": "performanceFee",
763
+ "type": "tuple"
764
+ },
765
+ {
766
+ "internalType": "bool",
767
+ "name": "isIntercepting",
768
+ "type": "bool"
769
+ },
770
+ {
771
+ "internalType": "address",
772
+ "name": "wallet",
773
+ "type": "address"
774
+ }
775
+ ],
776
+ "internalType": "struct ISetup.ProductSetupInfo",
777
+ "name": "setupInfo",
778
+ "type": "tuple"
253
779
  }
254
780
  ],
255
781
  "stateMutability": "view",
@@ -257,15 +783,15 @@
257
783
  },
258
784
  {
259
785
  "inputs": [],
260
- "name": "getType",
786
+ "name": "getToken",
261
787
  "outputs": [
262
788
  {
263
- "internalType": "ObjectType",
264
- "name": "",
265
- "type": "uint8"
789
+ "internalType": "contract IERC20Metadata",
790
+ "name": "token",
791
+ "type": "address"
266
792
  }
267
793
  ],
268
- "stateMutability": "pure",
794
+ "stateMutability": "view",
269
795
  "type": "function"
270
796
  },
271
797
  {
@@ -283,64 +809,141 @@
283
809
  },
284
810
  {
285
811
  "inputs": [],
286
- "name": "isRegisterable",
812
+ "name": "isConsumingScheduledOp",
287
813
  "outputs": [
288
814
  {
289
- "internalType": "bool",
815
+ "internalType": "bytes4",
290
816
  "name": "",
291
- "type": "bool"
817
+ "type": "bytes4"
292
818
  }
293
819
  ],
294
- "stateMutability": "pure",
820
+ "stateMutability": "view",
295
821
  "type": "function"
296
822
  },
297
823
  {
298
824
  "inputs": [],
299
- "name": "isRegistered",
300
- "outputs": [
825
+ "name": "linkToRegisteredNftId",
826
+ "outputs": [],
827
+ "stateMutability": "nonpayable",
828
+ "type": "function"
829
+ },
830
+ {
831
+ "inputs": [],
832
+ "name": "lock",
833
+ "outputs": [],
834
+ "stateMutability": "nonpayable",
835
+ "type": "function"
836
+ },
837
+ {
838
+ "inputs": [
301
839
  {
302
- "internalType": "bool",
303
- "name": "",
304
- "type": "bool"
840
+ "internalType": "address",
841
+ "name": "newAuthority",
842
+ "type": "address"
305
843
  }
306
844
  ],
307
- "stateMutability": "view",
845
+ "name": "setAuthority",
846
+ "outputs": [],
847
+ "stateMutability": "nonpayable",
308
848
  "type": "function"
309
849
  },
310
850
  {
311
- "inputs": [],
312
- "name": "register",
313
- "outputs": [
851
+ "inputs": [
852
+ {
853
+ "components": [
854
+ {
855
+ "internalType": "UFixed",
856
+ "name": "fractionalFee",
857
+ "type": "uint256"
858
+ },
859
+ {
860
+ "internalType": "uint256",
861
+ "name": "fixedFee",
862
+ "type": "uint256"
863
+ }
864
+ ],
865
+ "internalType": "struct Fee",
866
+ "name": "productFee",
867
+ "type": "tuple"
868
+ },
869
+ {
870
+ "components": [
871
+ {
872
+ "internalType": "UFixed",
873
+ "name": "fractionalFee",
874
+ "type": "uint256"
875
+ },
876
+ {
877
+ "internalType": "uint256",
878
+ "name": "fixedFee",
879
+ "type": "uint256"
880
+ }
881
+ ],
882
+ "internalType": "struct Fee",
883
+ "name": "processingFee",
884
+ "type": "tuple"
885
+ }
886
+ ],
887
+ "name": "setFees",
888
+ "outputs": [],
889
+ "stateMutability": "nonpayable",
890
+ "type": "function"
891
+ },
892
+ {
893
+ "inputs": [
314
894
  {
315
895
  "internalType": "NftId",
316
- "name": "componentId",
896
+ "name": "productNftId",
317
897
  "type": "uint96"
318
898
  }
319
899
  ],
900
+ "name": "setProductNftId",
901
+ "outputs": [],
320
902
  "stateMutability": "nonpayable",
321
903
  "type": "function"
322
- }
323
- ],
324
- "bytecode": "0x608060405234801561001057600080fd5b50604051610bad380380610bad83398101604081905261002f916101a5565b600080546001600160a01b038089166001600160a01b031992831617909255600180548216331790556002805483891690831681179091556004805483163017815560058054948916949093169390931790915560408051634288121d60e01b815290519192634288121d9282820192602092908290030181865afa1580156100bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e09190610227565b600680546001600160a01b039283166001600160a01b031991821617909155600780549590921694169390931790925580516008556020908101516009558151600a550151600b555061024b915050565b6001600160a01b038116811461014657600080fd5b50565b60006040828403121561015b57600080fd5b604080519081016001600160401b038111828210171561018b57634e487b7160e01b600052604160045260246000fd5b604052825181526020928301519281019290925250919050565b60008060008060008061010087890312156101bf57600080fd5b86516101ca81610131565b60208801519096506101db81610131565b60408801519095506101ec81610131565b60608801519094506101fd81610131565b925061020c8860808901610149565b915061021b8860c08901610149565b90509295509295509295565b60006020828403121561023957600080fd5b815161024481610131565b9392505050565b6109538061025a6000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80635ab1bd5311610097578063bc74aab011610066578063bc74aab0146101d4578063daafed4014610218578063de7b5d1414610245578063fb2cb1011461025657600080fd5b80635ab1bd53146101ac578063644c45e0146101bd57806379e829d0146101c5578063893d20e8146101cc57600080fd5b806321df0da7116100d357806321df0da714610166578063223668441461017757806331b62a3b1461018f5780633bc5de301461019757600080fd5b8063132996041461010557806315dae03e1461012f5780631aa3a0081461013e5780631bdd6b761461015e575b600080fd5b6004546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b604051603c8152602001610126565b61014661026c565b6040516001600160601b039091168152602001610126565b6101466104c2565b6005546001600160a01b0316610112565b61017f610534565b6040519015158152602001610126565b610146610620565b61019f610671565b6040516101269190610848565b6000546001600160a01b0316610112565b61014661070f565b600161017f565b610112610740565b604080518082018252600080825260209182015281518083019092526008548252600954908201525b60408051825181526020928301519281019290925201610126565b60408051808201825260008082526020918201528151808301909252600a548252600b54908201526101fd565b6002546001600160a01b0316610112565b6001546001600160a01b0316610112565b905090565b60006102806001546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146102bf5760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b6000546001600160a01b03166103175760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5052442d3030313a52454749535452595f5a45524f000000000060448201526064016102b6565b60005460025460405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa158015610363573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103879190610896565b6103e15760405162461bcd60e51b815260206004820152602560248201527f4552524f523a5052442d3030323a494e5354414e43455f4e4f545f5245474953604482015264151154915160da1b60648201526084016102b6565b60025460408051636fa2985360e01b815290516000926001600160a01b031691636fa298539160048083019260209291908290030181865afa15801561042b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044f91906108d7565b604051632210724360e11b81523060048201529091506001600160a01b03821690634420e486906024016020604051808303816000875af1158015610498573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bc91906108f4565b91505090565b60008054600754604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e906024015b602060405180830381865afa158015610510573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061026791906108f4565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa15801561057d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a191906108f4565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156105fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bc9190610896565b60006106346002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610510573d6000803e3d6000fd5b60606106856002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e691906108f4565b604080516001600160601b03909216602083015201604051602081830303815290604052905090565b60008054604051636939560f60e11b81523060048201526001600160a01b039091169063d272ac1e906024016104f3565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906108f4565b60005460405163df33330b60e01b81526001600160601b03831660048201529192506001600160a01b03169063df33330b90602401602060405180830381865afa1580156107ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082391906108d7565b91506001600160a01b038216610844576001546001600160a01b03166104bc565b5090565b600060208083528351808285015260005b8181101561087557858101830151858201604001528201610859565b506000604082860101526040601f19601f8301168501019250505092915050565b6000602082840312156108a857600080fd5b815180151581146108b857600080fd5b9392505050565b6001600160a01b03811681146108d457600080fd5b50565b6000602082840312156108e957600080fd5b81516108b8816108bf565b60006020828403121561090657600080fd5b81516001600160601b03811681146108b857600080fdfea2646970667358221220ce4ca508b37dbeab6ef1fe6b2720f05ec3a77afe9d078ea5e62994dfb9be135064736f6c63430008140033",
325
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101005760003560e01c80635ab1bd5311610097578063bc74aab011610066578063bc74aab0146101d4578063daafed4014610218578063de7b5d1414610245578063fb2cb1011461025657600080fd5b80635ab1bd53146101ac578063644c45e0146101bd57806379e829d0146101c5578063893d20e8146101cc57600080fd5b806321df0da7116100d357806321df0da714610166578063223668441461017757806331b62a3b1461018f5780633bc5de301461019757600080fd5b8063132996041461010557806315dae03e1461012f5780631aa3a0081461013e5780631bdd6b761461015e575b600080fd5b6004546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b604051603c8152602001610126565b61014661026c565b6040516001600160601b039091168152602001610126565b6101466104c2565b6005546001600160a01b0316610112565b61017f610534565b6040519015158152602001610126565b610146610620565b61019f610671565b6040516101269190610848565b6000546001600160a01b0316610112565b61014661070f565b600161017f565b610112610740565b604080518082018252600080825260209182015281518083019092526008548252600954908201525b60408051825181526020928301519281019290925201610126565b60408051808201825260008082526020918201528151808301909252600a548252600b54908201526101fd565b6002546001600160a01b0316610112565b6001546001600160a01b0316610112565b905090565b60006102806001546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146102bf5760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b6000546001600160a01b03166103175760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5052442d3030313a52454749535452595f5a45524f000000000060448201526064016102b6565b60005460025460405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa158015610363573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103879190610896565b6103e15760405162461bcd60e51b815260206004820152602560248201527f4552524f523a5052442d3030323a494e5354414e43455f4e4f545f5245474953604482015264151154915160da1b60648201526084016102b6565b60025460408051636fa2985360e01b815290516000926001600160a01b031691636fa298539160048083019260209291908290030181865afa15801561042b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044f91906108d7565b604051632210724360e11b81523060048201529091506001600160a01b03821690634420e486906024016020604051808303816000875af1158015610498573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bc91906108f4565b91505090565b60008054600754604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e906024015b602060405180830381865afa158015610510573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061026791906108f4565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa15801561057d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a191906108f4565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156105fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bc9190610896565b60006106346002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610510573d6000803e3d6000fd5b60606106856002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e691906108f4565b604080516001600160601b03909216602083015201604051602081830303815290604052905090565b60008054604051636939560f60e11b81523060048201526001600160a01b039091169063d272ac1e906024016104f3565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906108f4565b60005460405163df33330b60e01b81526001600160601b03831660048201529192506001600160a01b03169063df33330b90602401602060405180830381865afa1580156107ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082391906108d7565b91506001600160a01b038216610844576001546001600160a01b03166104bc565b5090565b600060208083528351808285015260005b8181101561087557858101830151858201604001528201610859565b506000604082860101526040601f19601f8301168501019250505092915050565b6000602082840312156108a857600080fd5b815180151581146108b857600080fd5b9392505050565b6001600160a01b03811681146108d457600080fd5b50565b6000602082840312156108e957600080fd5b81516108b8816108bf565b60006020828403121561090657600080fd5b81516001600160601b03811681146108b857600080fdfea2646970667358221220ce4ca508b37dbeab6ef1fe6b2720f05ec3a77afe9d078ea5e62994dfb9be135064736f6c63430008140033",
326
- "linkReferences": {
327
- "contracts/types/NftId.sol": {
328
- "NftIdLib": [
904
+ },
905
+ {
906
+ "inputs": [
329
907
  {
330
- "length": 20,
331
- "start": 2076
908
+ "internalType": "address",
909
+ "name": "newWallet",
910
+ "type": "address"
332
911
  }
333
- ]
334
- }
335
- },
336
- "deployedLinkReferences": {
337
- "contracts/types/NftId.sol": {
338
- "NftIdLib": [
912
+ ],
913
+ "name": "setWallet",
914
+ "outputs": [],
915
+ "stateMutability": "nonpayable",
916
+ "type": "function"
917
+ },
918
+ {
919
+ "inputs": [
339
920
  {
340
- "length": 20,
341
- "start": 1474
921
+ "internalType": "bytes4",
922
+ "name": "interfaceId",
923
+ "type": "bytes4"
342
924
  }
343
- ]
925
+ ],
926
+ "name": "supportsInterface",
927
+ "outputs": [
928
+ {
929
+ "internalType": "bool",
930
+ "name": "",
931
+ "type": "bool"
932
+ }
933
+ ],
934
+ "stateMutability": "view",
935
+ "type": "function"
936
+ },
937
+ {
938
+ "inputs": [],
939
+ "name": "unlock",
940
+ "outputs": [],
941
+ "stateMutability": "nonpayable",
942
+ "type": "function"
344
943
  }
345
- }
944
+ ],
945
+ "bytecode": "0x",
946
+ "deployedBytecode": "0x",
947
+ "linkReferences": {},
948
+ "deployedLinkReferences": {}
346
949
  }