@etherisc/gif-next 0.0.2-8ce6c0b-352 → 0.0.2-8d69bcd-543

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (515) hide show
  1. package/README.md +46 -8
  2. package/artifacts/contracts/accounting/AccountingService.sol/AccountingService.dbg.json +4 -0
  3. package/artifacts/contracts/accounting/AccountingService.sol/AccountingService.json +1007 -0
  4. package/artifacts/contracts/accounting/AccountingServiceManager.sol/AccountingServiceManager.dbg.json +4 -0
  5. package/artifacts/contracts/accounting/AccountingServiceManager.sol/AccountingServiceManager.json +744 -0
  6. package/artifacts/contracts/accounting/IAccountingService.sol/IAccountingService.dbg.json +4 -0
  7. package/artifacts/contracts/accounting/IAccountingService.sol/IAccountingService.json +791 -0
  8. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.dbg.json +1 -1
  9. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.json +158 -70
  10. package/artifacts/contracts/authorization/AccessAdmin.sol/IAccessManagedChecker.dbg.json +4 -0
  11. package/artifacts/contracts/authorization/AccessAdmin.sol/IAccessManagedChecker.json +24 -0
  12. package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.dbg.json +1 -1
  13. package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.json +233 -5
  14. package/artifacts/contracts/authorization/Authorization.sol/Authorization.dbg.json +1 -1
  15. package/artifacts/contracts/authorization/Authorization.sol/Authorization.json +166 -16
  16. package/artifacts/contracts/authorization/IAccess.sol/IAccess.dbg.json +1 -1
  17. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.dbg.json +1 -1
  18. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.json +97 -37
  19. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.dbg.json +1 -1
  20. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.json +81 -15
  21. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.dbg.json +1 -1
  22. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.json +19 -0
  23. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.dbg.json +1 -1
  24. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.json +68 -5
  25. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.dbg.json +1 -1
  26. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.json +166 -376
  27. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.dbg.json +1 -1
  28. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.json +144 -27
  29. package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +1 -1
  30. package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +103 -321
  31. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +1 -1
  32. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +245 -315
  33. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  34. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +125 -123
  35. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  36. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.json +115 -143
  37. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  38. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.json +128 -76
  39. package/artifacts/contracts/examples/fire/DamageLevel.sol/DamageLevelLib.dbg.json +4 -0
  40. package/artifacts/contracts/examples/fire/DamageLevel.sol/DamageLevelLib.json +22 -0
  41. package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.dbg.json +4 -0
  42. package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.json +1487 -0
  43. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.dbg.json +4 -0
  44. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.json +555 -0
  45. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.dbg.json +4 -0
  46. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.json +2048 -0
  47. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.dbg.json +4 -0
  48. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.json +527 -0
  49. package/artifacts/contracts/examples/fire/FireUSD.sol/FireUSD.dbg.json +4 -0
  50. package/artifacts/contracts/examples/fire/FireUSD.sol/FireUSD.json +376 -0
  51. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.dbg.json +4 -0
  52. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.json +1495 -0
  53. package/artifacts/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol/SimpleDistributionAuthorization.dbg.json +4 -0
  54. package/artifacts/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol/SimpleDistributionAuthorization.json +527 -0
  55. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.dbg.json +4 -0
  56. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.json +1211 -0
  57. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.dbg.json +4 -0
  58. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.json +1663 -0
  59. package/artifacts/contracts/examples/unpermissioned/SimplePoolAuthorization.sol/SimplePoolAuthorization.dbg.json +4 -0
  60. package/artifacts/contracts/examples/unpermissioned/SimplePoolAuthorization.sol/SimplePoolAuthorization.json +555 -0
  61. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.dbg.json +4 -0
  62. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.json +2416 -0
  63. package/artifacts/contracts/examples/unpermissioned/SimpleProductAuthorization.sol/SimpleProductAuthorization.dbg.json +4 -0
  64. package/artifacts/contracts/examples/unpermissioned/SimpleProductAuthorization.sol/SimpleProductAuthorization.json +527 -0
  65. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.dbg.json +1 -1
  66. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.json +193 -45
  67. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  68. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +158 -57
  69. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  70. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +105 -103
  71. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  72. package/artifacts/contracts/instance/Instance.sol/Instance.json +194 -154
  73. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.dbg.json +1 -1
  74. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.json +372 -136
  75. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.dbg.json +1 -1
  76. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.json +120 -90
  77. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  78. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +919 -315
  79. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  80. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +131 -266
  81. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  82. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +102 -92
  83. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +1 -1
  84. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +619 -492
  85. package/artifacts/contracts/instance/RiskSet.sol/RiskSet.dbg.json +4 -0
  86. package/artifacts/contracts/instance/RiskSet.sol/RiskSet.json +853 -0
  87. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.dbg.json +1 -1
  88. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.json +2 -2
  89. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +1 -1
  90. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.dbg.json +1 -1
  91. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.json +2 -2
  92. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.dbg.json +1 -1
  93. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.json +46 -5
  94. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.dbg.json +1 -1
  95. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.json +16 -5
  96. package/artifacts/contracts/instance/base/ObjectSetHelperLib.sol/ObjectSetHelperLib.dbg.json +4 -0
  97. package/artifacts/contracts/instance/base/ObjectSetHelperLib.sol/ObjectSetHelperLib.json +168 -0
  98. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  99. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +1 -1
  100. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  101. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  102. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  103. package/artifacts/contracts/mock/Dip.sol/Dip.dbg.json +1 -1
  104. package/artifacts/contracts/mock/Dip.sol/Dip.json +2 -2
  105. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.dbg.json +1 -1
  106. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.json +116 -326
  107. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.dbg.json +1 -1
  108. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.json +146 -29
  109. package/artifacts/contracts/oracle/IOracle.sol/IOracle.dbg.json +1 -1
  110. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.dbg.json +1 -1
  111. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.json +102 -130
  112. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.dbg.json +1 -1
  113. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.json +69 -11
  114. package/artifacts/contracts/oracle/Oracle.sol/Oracle.dbg.json +1 -1
  115. package/artifacts/contracts/oracle/Oracle.sol/Oracle.json +90 -308
  116. package/artifacts/contracts/oracle/OracleService.sol/OracleService.dbg.json +1 -1
  117. package/artifacts/contracts/oracle/OracleService.sol/OracleService.json +153 -190
  118. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.dbg.json +1 -1
  119. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.json +122 -88
  120. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.dbg.json +1 -1
  121. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.json +143 -387
  122. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.dbg.json +1 -1
  123. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.json +172 -27
  124. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +1 -1
  125. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +434 -201
  126. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  127. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +163 -97
  128. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +1 -1
  129. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.json +270 -27
  130. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  131. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.json +124 -195
  132. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +1 -1
  133. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +448 -217
  134. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +1 -1
  135. package/artifacts/contracts/pool/Pool.sol/Pool.json +109 -370
  136. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +1 -1
  137. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +569 -396
  138. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  139. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +141 -91
  140. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +1 -1
  141. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +134 -184
  142. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
  143. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +91 -93
  144. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.dbg.json +1 -1
  145. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.json +243 -400
  146. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.dbg.json +1 -1
  147. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.json +143 -26
  148. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +1 -1
  149. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +435 -212
  150. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
  151. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +145 -107
  152. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +1 -1
  153. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.json +94 -9
  154. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +1 -1
  155. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +318 -8
  156. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  157. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.json +361 -113
  158. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +1 -1
  159. package/artifacts/contracts/product/IPricingService.sol/IPricingService.json +136 -83
  160. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  161. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +235 -202
  162. package/artifacts/contracts/product/IRiskService.sol/IRiskService.dbg.json +4 -0
  163. package/artifacts/contracts/product/{IProductService.sol/IProductService.json → IRiskService.sol/IRiskService.json} +57 -4
  164. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +1 -1
  165. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +486 -333
  166. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  167. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +149 -99
  168. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +1 -1
  169. package/artifacts/contracts/product/PricingService.sol/PricingService.json +230 -312
  170. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +1 -1
  171. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +120 -122
  172. package/artifacts/contracts/product/Product.sol/Product.dbg.json +1 -1
  173. package/artifacts/contracts/product/Product.sol/Product.json +241 -398
  174. package/artifacts/contracts/product/RiskService.sol/RiskService.dbg.json +4 -0
  175. package/artifacts/contracts/product/RiskService.sol/RiskService.json +637 -0
  176. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.dbg.json +4 -0
  177. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.json +724 -0
  178. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  179. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +59 -16
  180. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  181. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +334 -34
  182. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  183. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +144 -41
  184. package/artifacts/contracts/registry/IRelease.sol/IRelease.dbg.json +4 -0
  185. package/artifacts/contracts/registry/IRelease.sol/IRelease.json +24 -0
  186. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  187. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +5 -18
  188. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  189. package/artifacts/contracts/registry/Registry.sol/Registry.json +540 -95
  190. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.dbg.json +1 -1
  191. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.json +275 -160
  192. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  193. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +109 -292
  194. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  195. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +94 -80
  196. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.dbg.json +4 -0
  197. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.json +1795 -0
  198. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.dbg.json +1 -1
  199. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.json +47 -6
  200. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.dbg.json +1 -1
  201. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.json +412 -246
  202. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.dbg.json +1 -1
  203. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.json +66 -8
  204. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  205. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +4 -4
  206. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +1 -1
  207. package/artifacts/contracts/shared/Component.sol/Component.json +76 -265
  208. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +1 -1
  209. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +508 -551
  210. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.dbg.json +1 -1
  211. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.json +137 -125
  212. package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.dbg.json +1 -1
  213. package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.json +57 -111
  214. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.dbg.json +4 -0
  215. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.json +541 -0
  216. package/artifacts/contracts/shared/ContractLib.sol/IInstanceAdminHelper.dbg.json +4 -0
  217. package/artifacts/contracts/shared/ContractLib.sol/IInstanceAdminHelper.json +24 -0
  218. package/artifacts/contracts/shared/ContractLib.sol/ITargetHelper.dbg.json +4 -0
  219. package/artifacts/contracts/shared/ContractLib.sol/ITargetHelper.json +30 -0
  220. package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.dbg.json +4 -0
  221. package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.json +40 -0
  222. package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +1 -1
  223. package/artifacts/contracts/shared/IComponent.sol/IComponent.json +89 -88
  224. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.dbg.json +1 -1
  225. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.json +454 -210
  226. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.dbg.json +1 -1
  227. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.json +102 -130
  228. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  229. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.json +36 -0
  230. package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  231. package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.json +36 -0
  232. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  233. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +16 -0
  234. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
  235. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +15 -47
  236. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  237. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +148 -0
  238. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  239. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  240. package/artifacts/contracts/shared/IService.sol/IService.json +55 -2
  241. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.dbg.json +4 -0
  242. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.json +53 -0
  243. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.dbg.json +1 -1
  244. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.json +89 -307
  245. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  246. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.json +42 -1
  247. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  248. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.json +42 -1
  249. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.dbg.json +1 -1
  250. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.json +2 -2
  251. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  252. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +22 -57
  253. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
  254. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +19 -141
  255. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  256. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +122 -97
  257. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
  258. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -15
  259. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  260. package/artifacts/contracts/shared/Service.sol/Service.json +57 -111
  261. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  262. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +589 -15
  263. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.dbg.json +4 -0
  264. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.json +395 -0
  265. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.dbg.json +4 -0
  266. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.json +140 -0
  267. package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +1 -1
  268. package/artifacts/contracts/staking/IStaking.sol/IStaking.json +134 -125
  269. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +1 -1
  270. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.json +55 -23
  271. package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.dbg.json +1 -1
  272. package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.json +85 -105
  273. package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +1 -1
  274. package/artifacts/contracts/staking/Staking.sol/Staking.json +212 -360
  275. package/artifacts/contracts/staking/StakingLifecycle.sol/StakingLifecycle.dbg.json +1 -1
  276. package/artifacts/contracts/staking/StakingLifecycle.sol/StakingLifecycle.json +46 -5
  277. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +1 -1
  278. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +125 -94
  279. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.dbg.json +1 -1
  280. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.json +6 -11
  281. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +1 -1
  282. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +100 -171
  283. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +1 -1
  284. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +99 -85
  285. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.dbg.json +1 -1
  286. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.json +153 -107
  287. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.dbg.json +1 -1
  288. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.json +59 -23
  289. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  290. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +1 -1
  291. package/artifacts/contracts/type/Amount.sol/AmountLib.json +61 -8
  292. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  293. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.json +2 -2
  294. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +1 -1
  295. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +28 -4
  296. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  297. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.json +2 -2
  298. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +1 -1
  299. package/artifacts/contracts/type/Fee.sol/FeeLib.json +7 -2
  300. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +1 -1
  301. package/artifacts/contracts/type/Key32.sol/Key32Lib.json +2 -2
  302. package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.dbg.json +4 -0
  303. package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.json +33 -0
  304. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +1 -1
  305. package/artifacts/contracts/type/NftId.sol/NftIdLib.json +23 -4
  306. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  307. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.json +2 -2
  308. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  309. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.json +2 -2
  310. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
  311. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +19 -19
  312. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +1 -1
  313. package/artifacts/contracts/type/Referral.sol/ReferralLib.json +2 -2
  314. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.dbg.json +1 -1
  315. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.json +2 -2
  316. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +1 -1
  317. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.json +118 -5
  318. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +1 -1
  319. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.json +79 -15
  320. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +1 -1
  321. package/artifacts/contracts/type/Seconds.sol/SecondsLib.json +50 -2
  322. package/artifacts/contracts/type/Selector.sol/SelectorLib.dbg.json +1 -1
  323. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.dbg.json +1 -1
  324. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +1 -1
  325. package/artifacts/contracts/type/StateId.sol/StateIdLib.json +15 -2
  326. package/artifacts/contracts/type/String.sol/StrLib.dbg.json +1 -1
  327. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +1 -1
  328. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.json +23 -4
  329. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +1 -1
  330. package/artifacts/contracts/type/UFixed.sol/UFixedLib.json +52 -2
  331. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +1 -1
  332. package/artifacts/contracts/type/Version.sol/VersionLib.json +2 -21
  333. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +1 -1
  334. package/artifacts/contracts/type/Version.sol/VersionPartLib.json +47 -2
  335. package/artifacts/contracts/upgradeability/IVersionable.sol/IVersionable.dbg.json +1 -1
  336. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  337. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.json +71 -70
  338. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  339. package/artifacts/contracts/upgradeability/Versionable.sol/Versionable.dbg.json +1 -1
  340. package/contracts/accounting/AccountingService.sol +262 -0
  341. package/contracts/accounting/AccountingServiceManager.sol +38 -0
  342. package/contracts/accounting/IAccountingService.sol +45 -0
  343. package/contracts/authorization/AccessAdmin.sol +189 -124
  344. package/contracts/authorization/AccessManagerCloneable.sol +136 -3
  345. package/contracts/authorization/Authorization.sol +300 -202
  346. package/contracts/authorization/IAccess.sol +1 -0
  347. package/contracts/authorization/IAccessAdmin.sol +10 -6
  348. package/contracts/authorization/IAuthorization.sol +19 -7
  349. package/contracts/authorization/IServiceAuthorization.sol +3 -1
  350. package/contracts/authorization/ServiceAuthorization.sol +26 -10
  351. package/contracts/distribution/BasicDistribution.sol +12 -22
  352. package/contracts/distribution/BasicDistributionAuthorization.sol +3 -11
  353. package/contracts/distribution/Distribution.sol +36 -50
  354. package/contracts/distribution/DistributionService.sol +122 -117
  355. package/contracts/distribution/DistributionServiceManager.sol +6 -6
  356. package/contracts/distribution/IDistributionComponent.sol +2 -2
  357. package/contracts/distribution/IDistributionService.sol +16 -14
  358. package/contracts/examples/fire/DamageLevel.sol +59 -0
  359. package/contracts/examples/fire/FirePool.sol +90 -0
  360. package/contracts/examples/fire/FirePoolAuthorization.sol +35 -0
  361. package/contracts/examples/fire/FireProduct.sol +438 -0
  362. package/contracts/examples/fire/FireProductAuthorization.sol +45 -0
  363. package/contracts/examples/fire/FireUSD.sol +26 -0
  364. package/contracts/examples/unpermissioned/SimpleDistribution.sol +57 -0
  365. package/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol +28 -0
  366. package/contracts/examples/unpermissioned/SimpleOracle.sol +137 -0
  367. package/contracts/examples/unpermissioned/SimplePool.sol +107 -0
  368. package/contracts/examples/unpermissioned/SimplePoolAuthorization.sol +28 -0
  369. package/contracts/examples/unpermissioned/SimpleProduct.sol +370 -0
  370. package/contracts/examples/unpermissioned/SimpleProductAuthorization.sol +28 -0
  371. package/contracts/instance/BundleSet.sol +42 -38
  372. package/contracts/instance/IInstance.sol +21 -37
  373. package/contracts/instance/IInstanceService.sol +9 -29
  374. package/contracts/instance/Instance.sol +59 -66
  375. package/contracts/instance/InstanceAdmin.sol +254 -84
  376. package/contracts/instance/InstanceAuthorizationV3.sol +56 -47
  377. package/contracts/instance/InstanceReader.sol +218 -27
  378. package/contracts/instance/InstanceService.sol +125 -164
  379. package/contracts/instance/InstanceServiceManager.sol +6 -7
  380. package/contracts/instance/InstanceStore.sol +24 -2
  381. package/contracts/instance/RiskSet.sol +118 -0
  382. package/contracts/instance/base/ObjectCounter.sol +1 -2
  383. package/contracts/instance/base/ObjectLifecycle.sol +11 -4
  384. package/contracts/instance/base/ObjectSet.sol +31 -33
  385. package/contracts/instance/base/ObjectSetHelperLib.sol +30 -0
  386. package/contracts/instance/module/IBundle.sol +1 -1
  387. package/contracts/instance/module/IComponents.sol +14 -14
  388. package/contracts/instance/module/IDistribution.sol +0 -1
  389. package/contracts/instance/module/IPolicy.sol +26 -25
  390. package/contracts/instance/module/IRisk.sol +3 -0
  391. package/contracts/mock/Dip.sol +1 -1
  392. package/contracts/oracle/BasicOracle.sol +0 -1
  393. package/contracts/oracle/BasicOracleAuthorization.sol +3 -12
  394. package/contracts/oracle/IOracleService.sol +2 -1
  395. package/contracts/oracle/Oracle.sol +9 -23
  396. package/contracts/oracle/OracleService.sol +113 -81
  397. package/contracts/oracle/OracleServiceManager.sol +6 -6
  398. package/contracts/pool/BasicPool.sol +38 -27
  399. package/contracts/pool/BasicPoolAuthorization.sol +15 -8
  400. package/contracts/pool/BundleService.sol +221 -80
  401. package/contracts/pool/BundleServiceManager.sol +6 -6
  402. package/contracts/pool/IBundleService.sol +33 -18
  403. package/contracts/pool/IPoolComponent.sol +21 -10
  404. package/contracts/pool/IPoolService.sol +53 -50
  405. package/contracts/pool/Pool.sol +150 -116
  406. package/contracts/pool/PoolService.sol +337 -160
  407. package/contracts/pool/PoolServiceManager.sol +4 -4
  408. package/contracts/product/ApplicationService.sol +72 -43
  409. package/contracts/product/ApplicationServiceManager.sol +4 -4
  410. package/contracts/product/BasicProduct.sol +13 -44
  411. package/contracts/product/BasicProductAuthorization.sol +3 -14
  412. package/contracts/product/ClaimService.sol +428 -136
  413. package/contracts/product/ClaimServiceManager.sol +4 -4
  414. package/contracts/product/IApplicationService.sol +6 -2
  415. package/contracts/product/IClaimService.sol +44 -7
  416. package/contracts/product/IPolicyService.sol +46 -34
  417. package/contracts/product/IPricingService.sol +10 -10
  418. package/contracts/product/IProductComponent.sol +27 -5
  419. package/contracts/product/{IProductService.sol → IRiskService.sol} +1 -1
  420. package/contracts/product/PolicyService.sol +501 -258
  421. package/contracts/product/PolicyServiceManager.sol +4 -4
  422. package/contracts/product/PricingService.sol +66 -62
  423. package/contracts/product/PricingServiceManager.sol +4 -4
  424. package/contracts/product/Product.sol +160 -89
  425. package/contracts/product/RiskService.sol +145 -0
  426. package/contracts/product/RiskServiceManager.sol +39 -0
  427. package/contracts/registry/ChainNft.sol +72 -40
  428. package/contracts/registry/IRegistry.sol +60 -28
  429. package/contracts/registry/IRegistryService.sol +5 -12
  430. package/contracts/registry/IRelease.sol +26 -0
  431. package/contracts/registry/ITransferInterceptor.sol +1 -2
  432. package/contracts/registry/Registry.sol +357 -203
  433. package/contracts/registry/RegistryAdmin.sol +161 -182
  434. package/contracts/registry/RegistryService.sol +37 -48
  435. package/contracts/registry/RegistryServiceManager.sol +3 -3
  436. package/contracts/registry/ReleaseAdmin.sol +245 -0
  437. package/contracts/registry/ReleaseLifecycle.sol +8 -3
  438. package/contracts/registry/ReleaseRegistry.sol +258 -234
  439. package/contracts/registry/ServiceAuthorizationV3.sol +94 -52
  440. package/contracts/registry/TokenRegistry.sol +6 -8
  441. package/contracts/shared/Component.sol +82 -121
  442. package/contracts/shared/ComponentService.sol +419 -349
  443. package/contracts/shared/ComponentServiceManager.sol +8 -5
  444. package/contracts/shared/ComponentVerifyingService.sol +28 -17
  445. package/contracts/shared/ContractLib.sol +253 -0
  446. package/contracts/shared/IComponent.sol +8 -17
  447. package/contracts/shared/IComponentService.sol +43 -39
  448. package/contracts/shared/IInstanceLinkedComponent.sol +6 -32
  449. package/contracts/shared/ILifecycle.sol +3 -1
  450. package/contracts/shared/INftOwnable.sol +2 -0
  451. package/contracts/shared/IPolicyHolder.sol +12 -22
  452. package/contracts/shared/IRegisterable.sol +23 -1
  453. package/contracts/shared/IService.sol +3 -5
  454. package/contracts/shared/{ERC165.sol → InitializableERC165.sol} +3 -3
  455. package/contracts/shared/InstanceLinkedComponent.sol +73 -48
  456. package/contracts/shared/KeyValueStore.sol +1 -1
  457. package/contracts/shared/Lifecycle.sol +15 -4
  458. package/contracts/shared/NftOwnable.sol +31 -11
  459. package/contracts/shared/PolicyHolder.sol +17 -57
  460. package/contracts/shared/Registerable.sol +55 -21
  461. package/contracts/shared/RegistryLinked.sol +9 -14
  462. package/contracts/shared/Service.sol +15 -32
  463. package/contracts/shared/TokenHandler.sol +281 -27
  464. package/contracts/shared/TokenHandlerDeployerLib.sol +20 -0
  465. package/contracts/staking/IStaking.sol +7 -9
  466. package/contracts/staking/IStakingService.sol +0 -3
  467. package/contracts/staking/StakeManagerLib.sol +19 -26
  468. package/contracts/staking/Staking.sol +71 -59
  469. package/contracts/staking/StakingManager.sol +8 -6
  470. package/contracts/staking/StakingReader.sol +13 -6
  471. package/contracts/staking/StakingService.sol +37 -40
  472. package/contracts/staking/StakingServiceManager.sol +6 -5
  473. package/contracts/staking/TargetManagerLib.sol +7 -3
  474. package/contracts/type/Amount.sol +27 -5
  475. package/contracts/type/Blocknumber.sol +7 -1
  476. package/contracts/type/ClaimId.sol +6 -1
  477. package/contracts/type/Key32.sol +2 -2
  478. package/contracts/type/Key32Set.sol +62 -0
  479. package/contracts/type/NftId.sol +7 -0
  480. package/contracts/type/ObjectType.sol +52 -20
  481. package/contracts/type/PayoutId.sol +10 -10
  482. package/contracts/type/Referral.sol +1 -0
  483. package/contracts/type/RiskId.sol +35 -4
  484. package/contracts/type/RoleId.sol +23 -15
  485. package/contracts/type/Seconds.sol +21 -1
  486. package/contracts/type/StateId.sol +15 -1
  487. package/contracts/type/Timestamp.sol +10 -5
  488. package/contracts/type/UFixed.sol +35 -122
  489. package/contracts/type/Version.sol +15 -5
  490. package/contracts/upgradeability/ProxyManager.sol +68 -34
  491. package/contracts/upgradeability/Versionable.sol +2 -2
  492. package/package.json +4 -3
  493. package/artifacts/contracts/authorization/IModuleAuthorization.sol/IModuleAuthorization.dbg.json +0 -4
  494. package/artifacts/contracts/authorization/IModuleAuthorization.sol/IModuleAuthorization.json +0 -290
  495. package/artifacts/contracts/authorization/ModuleAuthorization.sol/ModuleAuthorization.dbg.json +0 -4
  496. package/artifacts/contracts/authorization/ModuleAuthorization.sol/ModuleAuthorization.json +0 -390
  497. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +0 -4
  498. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +0 -129
  499. package/artifacts/contracts/product/IProductService.sol/IProductService.dbg.json +0 -4
  500. package/artifacts/contracts/product/ProductService.sol/ProductService.dbg.json +0 -4
  501. package/artifacts/contracts/product/ProductService.sol/ProductService.json +0 -708
  502. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.dbg.json +0 -4
  503. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.json +0 -702
  504. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +0 -4
  505. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +0 -73
  506. package/artifacts/contracts/shared/InitializableCustom.sol/InitializableCustom.dbg.json +0 -4
  507. package/artifacts/contracts/shared/InitializableCustom.sol/InitializableCustom.json +0 -39
  508. package/artifacts/contracts/type/UFixed.sol/MathLib.dbg.json +0 -4
  509. package/artifacts/contracts/type/UFixed.sol/MathLib.json +0 -10
  510. package/contracts/authorization/IModuleAuthorization.sol +0 -21
  511. package/contracts/authorization/ModuleAuthorization.sol +0 -78
  512. package/contracts/instance/module/IAccess.sol +0 -46
  513. package/contracts/product/ProductService.sol +0 -99
  514. package/contracts/product/ProductServiceManager.sol +0 -39
  515. package/contracts/shared/InitializableCustom.sol +0 -177
@@ -5,15 +5,68 @@
5
5
  "abi": [
6
6
  {
7
7
  "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "registry",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "address",
15
+ "name": "component",
16
+ "type": "address"
17
+ },
8
18
  {
9
19
  "internalType": "address",
10
20
  "name": "token",
11
21
  "type": "address"
22
+ },
23
+ {
24
+ "internalType": "address",
25
+ "name": "authority",
26
+ "type": "address"
12
27
  }
13
28
  ],
14
29
  "stateMutability": "nonpayable",
15
30
  "type": "constructor"
16
31
  },
32
+ {
33
+ "inputs": [
34
+ {
35
+ "internalType": "address",
36
+ "name": "authority",
37
+ "type": "address"
38
+ }
39
+ ],
40
+ "name": "AccessManagedInvalidAuthority",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [
45
+ {
46
+ "internalType": "address",
47
+ "name": "caller",
48
+ "type": "address"
49
+ },
50
+ {
51
+ "internalType": "uint32",
52
+ "name": "delay",
53
+ "type": "uint32"
54
+ }
55
+ ],
56
+ "name": "AccessManagedRequiredDelay",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [
61
+ {
62
+ "internalType": "address",
63
+ "name": "caller",
64
+ "type": "address"
65
+ }
66
+ ],
67
+ "name": "AccessManagedUnauthorized",
68
+ "type": "error"
69
+ },
17
70
  {
18
71
  "inputs": [
19
72
  {
@@ -36,6 +89,195 @@
36
89
  "name": "AddressInsufficientBalance",
37
90
  "type": "error"
38
91
  },
92
+ {
93
+ "inputs": [],
94
+ "name": "ErrorTokenHandlerAddressIsSameAsCurrent",
95
+ "type": "error"
96
+ },
97
+ {
98
+ "inputs": [
99
+ {
100
+ "internalType": "address",
101
+ "name": "token",
102
+ "type": "address"
103
+ },
104
+ {
105
+ "internalType": "address",
106
+ "name": "from",
107
+ "type": "address"
108
+ },
109
+ {
110
+ "internalType": "address",
111
+ "name": "spender",
112
+ "type": "address"
113
+ },
114
+ {
115
+ "internalType": "uint256",
116
+ "name": "allowance",
117
+ "type": "uint256"
118
+ },
119
+ {
120
+ "internalType": "uint256",
121
+ "name": "expectedAllowance",
122
+ "type": "uint256"
123
+ }
124
+ ],
125
+ "name": "ErrorTokenHandlerAllowanceTooSmall",
126
+ "type": "error"
127
+ },
128
+ {
129
+ "inputs": [],
130
+ "name": "ErrorTokenHandlerAmountIsZero",
131
+ "type": "error"
132
+ },
133
+ {
134
+ "inputs": [
135
+ {
136
+ "internalType": "address",
137
+ "name": "token",
138
+ "type": "address"
139
+ },
140
+ {
141
+ "internalType": "address",
142
+ "name": "from",
143
+ "type": "address"
144
+ },
145
+ {
146
+ "internalType": "uint256",
147
+ "name": "balance",
148
+ "type": "uint256"
149
+ },
150
+ {
151
+ "internalType": "uint256",
152
+ "name": "expectedBalance",
153
+ "type": "uint256"
154
+ }
155
+ ],
156
+ "name": "ErrorTokenHandlerBalanceTooLow",
157
+ "type": "error"
158
+ },
159
+ {
160
+ "inputs": [
161
+ {
162
+ "internalType": "address",
163
+ "name": "component",
164
+ "type": "address"
165
+ }
166
+ ],
167
+ "name": "ErrorTokenHandlerComponentNotRegistered",
168
+ "type": "error"
169
+ },
170
+ {
171
+ "inputs": [],
172
+ "name": "ErrorTokenHandlerNewWalletAddressZero",
173
+ "type": "error"
174
+ },
175
+ {
176
+ "inputs": [
177
+ {
178
+ "internalType": "address",
179
+ "name": "registry",
180
+ "type": "address"
181
+ }
182
+ ],
183
+ "name": "ErrorTokenHandlerNotRegistry",
184
+ "type": "error"
185
+ },
186
+ {
187
+ "inputs": [
188
+ {
189
+ "internalType": "address",
190
+ "name": "service",
191
+ "type": "address"
192
+ }
193
+ ],
194
+ "name": "ErrorTokenHandlerNotService",
195
+ "type": "error"
196
+ },
197
+ {
198
+ "inputs": [
199
+ {
200
+ "internalType": "NftId",
201
+ "name": "nftId",
202
+ "type": "uint96"
203
+ },
204
+ {
205
+ "internalType": "address",
206
+ "name": "tokenHandler",
207
+ "type": "address"
208
+ },
209
+ {
210
+ "internalType": "address",
211
+ "name": "wallet",
212
+ "type": "address"
213
+ }
214
+ ],
215
+ "name": "ErrorTokenHandlerNotWallet",
216
+ "type": "error"
217
+ },
218
+ {
219
+ "inputs": [
220
+ {
221
+ "internalType": "Amount",
222
+ "name": "pushAmount",
223
+ "type": "uint96"
224
+ },
225
+ {
226
+ "internalType": "Amount",
227
+ "name": "pullAmount",
228
+ "type": "uint96"
229
+ }
230
+ ],
231
+ "name": "ErrorTokenHandlerPushAmountsTooLarge",
232
+ "type": "error"
233
+ },
234
+ {
235
+ "inputs": [
236
+ {
237
+ "internalType": "address",
238
+ "name": "to",
239
+ "type": "address"
240
+ },
241
+ {
242
+ "internalType": "address",
243
+ "name": "to2",
244
+ "type": "address"
245
+ },
246
+ {
247
+ "internalType": "address",
248
+ "name": "to3",
249
+ "type": "address"
250
+ }
251
+ ],
252
+ "name": "ErrorTokenHandlerRecipientWalletsMustBeDistinct",
253
+ "type": "error"
254
+ },
255
+ {
256
+ "inputs": [],
257
+ "name": "ErrorTokenHandlerTokenAddressZero",
258
+ "type": "error"
259
+ },
260
+ {
261
+ "inputs": [
262
+ {
263
+ "internalType": "address",
264
+ "name": "from",
265
+ "type": "address"
266
+ },
267
+ {
268
+ "internalType": "address",
269
+ "name": "to1",
270
+ "type": "address"
271
+ },
272
+ {
273
+ "internalType": "address",
274
+ "name": "to2",
275
+ "type": "address"
276
+ }
277
+ ],
278
+ "name": "ErrorTokenHandlerWalletsNotDistinct",
279
+ "type": "error"
280
+ },
39
281
  {
40
282
  "inputs": [],
41
283
  "name": "FailedInnerCall",
@@ -53,46 +295,251 @@
53
295
  "type": "error"
54
296
  },
55
297
  {
56
- "inputs": [],
57
- "name": "getToken",
58
- "outputs": [
298
+ "anonymous": false,
299
+ "inputs": [
59
300
  {
60
- "internalType": "contract IERC20Metadata",
61
- "name": "",
301
+ "indexed": false,
302
+ "internalType": "address",
303
+ "name": "authority",
62
304
  "type": "address"
63
305
  }
64
306
  ],
65
- "stateMutability": "view",
66
- "type": "function"
307
+ "name": "AuthorityUpdated",
308
+ "type": "event"
309
+ },
310
+ {
311
+ "anonymous": false,
312
+ "inputs": [
313
+ {
314
+ "indexed": false,
315
+ "internalType": "NftId",
316
+ "name": "nftId",
317
+ "type": "uint96"
318
+ },
319
+ {
320
+ "indexed": false,
321
+ "internalType": "address",
322
+ "name": "tokenHandler",
323
+ "type": "address"
324
+ },
325
+ {
326
+ "indexed": false,
327
+ "internalType": "address",
328
+ "name": "token",
329
+ "type": "address"
330
+ },
331
+ {
332
+ "indexed": false,
333
+ "internalType": "Amount",
334
+ "name": "amount",
335
+ "type": "uint96"
336
+ },
337
+ {
338
+ "indexed": false,
339
+ "internalType": "bool",
340
+ "name": "isMaxAmount",
341
+ "type": "bool"
342
+ }
343
+ ],
344
+ "name": "LogTokenHandlerTokenApproved",
345
+ "type": "event"
67
346
  },
68
347
  {
348
+ "anonymous": false,
69
349
  "inputs": [
70
350
  {
351
+ "indexed": false,
71
352
  "internalType": "address",
72
353
  "name": "token",
73
354
  "type": "address"
74
355
  },
75
356
  {
357
+ "indexed": false,
76
358
  "internalType": "address",
77
359
  "name": "from",
78
360
  "type": "address"
79
361
  },
80
362
  {
363
+ "indexed": false,
81
364
  "internalType": "address",
82
365
  "name": "to",
83
366
  "type": "address"
84
367
  },
368
+ {
369
+ "indexed": false,
370
+ "internalType": "Amount",
371
+ "name": "amount",
372
+ "type": "uint96"
373
+ }
374
+ ],
375
+ "name": "LogTokenHandlerTokenTransfer",
376
+ "type": "event"
377
+ },
378
+ {
379
+ "anonymous": false,
380
+ "inputs": [
381
+ {
382
+ "indexed": false,
383
+ "internalType": "NftId",
384
+ "name": "componentNftId",
385
+ "type": "uint96"
386
+ },
387
+ {
388
+ "indexed": false,
389
+ "internalType": "address",
390
+ "name": "oldWallet",
391
+ "type": "address"
392
+ },
393
+ {
394
+ "indexed": false,
395
+ "internalType": "address",
396
+ "name": "newWallet",
397
+ "type": "address"
398
+ }
399
+ ],
400
+ "name": "LogTokenHandlerWalletAddressChanged",
401
+ "type": "event"
402
+ },
403
+ {
404
+ "anonymous": false,
405
+ "inputs": [
406
+ {
407
+ "indexed": false,
408
+ "internalType": "NftId",
409
+ "name": "componentNftId",
410
+ "type": "uint96"
411
+ },
412
+ {
413
+ "indexed": false,
414
+ "internalType": "address",
415
+ "name": "oldWallet",
416
+ "type": "address"
417
+ },
418
+ {
419
+ "indexed": false,
420
+ "internalType": "address",
421
+ "name": "newWallet",
422
+ "type": "address"
423
+ },
424
+ {
425
+ "indexed": false,
426
+ "internalType": "Amount",
427
+ "name": "amount",
428
+ "type": "uint96"
429
+ }
430
+ ],
431
+ "name": "LogTokenHandlerWalletTokensTransferred",
432
+ "type": "event"
433
+ },
434
+ {
435
+ "inputs": [],
436
+ "name": "COMPONENT",
437
+ "outputs": [
438
+ {
439
+ "internalType": "address",
440
+ "name": "",
441
+ "type": "address"
442
+ }
443
+ ],
444
+ "stateMutability": "view",
445
+ "type": "function"
446
+ },
447
+ {
448
+ "inputs": [],
449
+ "name": "NFT_ID",
450
+ "outputs": [
451
+ {
452
+ "internalType": "NftId",
453
+ "name": "",
454
+ "type": "uint96"
455
+ }
456
+ ],
457
+ "stateMutability": "view",
458
+ "type": "function"
459
+ },
460
+ {
461
+ "inputs": [],
462
+ "name": "REGISTRY",
463
+ "outputs": [
464
+ {
465
+ "internalType": "contract IRegistry",
466
+ "name": "",
467
+ "type": "address"
468
+ }
469
+ ],
470
+ "stateMutability": "view",
471
+ "type": "function"
472
+ },
473
+ {
474
+ "inputs": [],
475
+ "name": "TOKEN",
476
+ "outputs": [
477
+ {
478
+ "internalType": "contract IERC20Metadata",
479
+ "name": "",
480
+ "type": "address"
481
+ }
482
+ ],
483
+ "stateMutability": "view",
484
+ "type": "function"
485
+ },
486
+ {
487
+ "inputs": [
488
+ {
489
+ "internalType": "contract IERC20Metadata",
490
+ "name": "token",
491
+ "type": "address"
492
+ },
85
493
  {
86
494
  "internalType": "Amount",
87
495
  "name": "amount",
88
496
  "type": "uint96"
89
497
  }
90
498
  ],
91
- "name": "safeTransferFrom",
499
+ "name": "approve",
92
500
  "outputs": [],
93
501
  "stateMutability": "nonpayable",
94
502
  "type": "function"
95
503
  },
504
+ {
505
+ "inputs": [],
506
+ "name": "authority",
507
+ "outputs": [
508
+ {
509
+ "internalType": "address",
510
+ "name": "",
511
+ "type": "address"
512
+ }
513
+ ],
514
+ "stateMutability": "view",
515
+ "type": "function"
516
+ },
517
+ {
518
+ "inputs": [],
519
+ "name": "getWallet",
520
+ "outputs": [
521
+ {
522
+ "internalType": "address",
523
+ "name": "wallet",
524
+ "type": "address"
525
+ }
526
+ ],
527
+ "stateMutability": "view",
528
+ "type": "function"
529
+ },
530
+ {
531
+ "inputs": [],
532
+ "name": "isConsumingScheduledOp",
533
+ "outputs": [
534
+ {
535
+ "internalType": "bytes4",
536
+ "name": "",
537
+ "type": "bytes4"
538
+ }
539
+ ],
540
+ "stateMutability": "view",
541
+ "type": "function"
542
+ },
96
543
  {
97
544
  "inputs": [
98
545
  {
@@ -100,6 +547,19 @@
100
547
  "name": "from",
101
548
  "type": "address"
102
549
  },
550
+ {
551
+ "internalType": "Amount",
552
+ "name": "amount",
553
+ "type": "uint96"
554
+ }
555
+ ],
556
+ "name": "pullToken",
557
+ "outputs": [],
558
+ "stateMutability": "nonpayable",
559
+ "type": "function"
560
+ },
561
+ {
562
+ "inputs": [
103
563
  {
104
564
  "internalType": "address",
105
565
  "name": "to",
@@ -111,24 +571,102 @@
111
571
  "type": "uint96"
112
572
  }
113
573
  ],
114
- "name": "transfer",
574
+ "name": "pushToken",
575
+ "outputs": [],
576
+ "stateMutability": "nonpayable",
577
+ "type": "function"
578
+ },
579
+ {
580
+ "inputs": [
581
+ {
582
+ "internalType": "address",
583
+ "name": "newAuthority",
584
+ "type": "address"
585
+ }
586
+ ],
587
+ "name": "setAuthority",
588
+ "outputs": [],
589
+ "stateMutability": "nonpayable",
590
+ "type": "function"
591
+ },
592
+ {
593
+ "inputs": [
594
+ {
595
+ "internalType": "address",
596
+ "name": "newWallet",
597
+ "type": "address"
598
+ }
599
+ ],
600
+ "name": "setWallet",
115
601
  "outputs": [],
116
602
  "stateMutability": "nonpayable",
117
603
  "type": "function"
118
604
  }
119
605
  ],
120
- "bytecode": "0x6080604052348015600e575f80fd5b50604051610525380380610525833981016040819052602b91604e565b5f80546001600160a01b0319166001600160a01b03929092169190911790556079565b5f60208284031215605d575f80fd5b81516001600160a01b03811681146072575f80fd5b9392505050565b61049f806100865f395ff3fe608060405234801561000f575f80fd5b506004361061003f575f3560e01c806321df0da7146100435780638d7271c314610061578063c661667d14610076575b5f80fd5b5f54604080516001600160a01b039092168252519081900360200190f35b61007461006f36600461038c565b610089565b005b6100746100843660046103dd565b610119565b60405163046e44af60e11b81526001600160601b03821660048201526101139085908590859073__$3bac17678db7ae928afa209f2f44deec9c$__906308dc895e906024015b602060405180830381865af41580156100ea573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061010e919061041d565b610172565b50505050565b5f5460405163046e44af60e11b81526001600160601b038316600482015261016d916001600160a01b0316908590859073__$3bac17678db7ae928afa209f2f44deec9c$__906308dc895e906024016100cf565b505050565b604080516001600160a01b038581166024830152848116604483015260648083018590528351808403909101815260849092019092526020810180516001600160e01b03166323b872dd60e01b179052610113918691905f906101d790841683610229565b905080515f141580156101fb5750808060200190518101906101f99190610434565b155b1561016d57604051635274afe760e01b81526001600160a01b03841660048201526024015b60405180910390fd5b606061023683835f61023d565b9392505050565b6060814710156102625760405163cd78605960e01b8152306004820152602401610220565b5f80856001600160a01b0316848660405161027d9190610453565b5f6040518083038185875af1925050503d805f81146102b7576040519150601f19603f3d011682016040523d82523d5f602084013e6102bc565b606091505b50915091506102cc8683836102d6565b9695505050505050565b6060826102eb576102e682610332565b610236565b815115801561030257506001600160a01b0384163b155b1561032b57604051639996b31560e01b81526001600160a01b0385166004820152602401610220565b5080610236565b8051156103425780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80356001600160a01b0381168114610371575f80fd5b919050565b80356001600160601b0381168114610371575f80fd5b5f805f806080858703121561039f575f80fd5b6103a88561035b565b93506103b66020860161035b565b92506103c46040860161035b565b91506103d260608601610376565b905092959194509250565b5f805f606084860312156103ef575f80fd5b6103f88461035b565b92506104066020850161035b565b915061041460408501610376565b90509250925092565b5f6020828403121561042d575f80fd5b5051919050565b5f60208284031215610444575f80fd5b81518015158114610236575f80fd5b5f82518060208501845e5f92019182525091905056fea26469706673582212205f34ee826179979a1994401fb81767c75e8cf7caddde2e10872d95c77dcb6e8564736f6c634300081a0033",
121
- "deployedBytecode": "0x608060405234801561000f575f80fd5b506004361061003f575f3560e01c806321df0da7146100435780638d7271c314610061578063c661667d14610076575b5f80fd5b5f54604080516001600160a01b039092168252519081900360200190f35b61007461006f36600461038c565b610089565b005b6100746100843660046103dd565b610119565b60405163046e44af60e11b81526001600160601b03821660048201526101139085908590859073__$3bac17678db7ae928afa209f2f44deec9c$__906308dc895e906024015b602060405180830381865af41580156100ea573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061010e919061041d565b610172565b50505050565b5f5460405163046e44af60e11b81526001600160601b038316600482015261016d916001600160a01b0316908590859073__$3bac17678db7ae928afa209f2f44deec9c$__906308dc895e906024016100cf565b505050565b604080516001600160a01b038581166024830152848116604483015260648083018590528351808403909101815260849092019092526020810180516001600160e01b03166323b872dd60e01b179052610113918691905f906101d790841683610229565b905080515f141580156101fb5750808060200190518101906101f99190610434565b155b1561016d57604051635274afe760e01b81526001600160a01b03841660048201526024015b60405180910390fd5b606061023683835f61023d565b9392505050565b6060814710156102625760405163cd78605960e01b8152306004820152602401610220565b5f80856001600160a01b0316848660405161027d9190610453565b5f6040518083038185875af1925050503d805f81146102b7576040519150601f19603f3d011682016040523d82523d5f602084013e6102bc565b606091505b50915091506102cc8683836102d6565b9695505050505050565b6060826102eb576102e682610332565b610236565b815115801561030257506001600160a01b0384163b155b1561032b57604051639996b31560e01b81526001600160a01b0385166004820152602401610220565b5080610236565b8051156103425780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80356001600160a01b0381168114610371575f80fd5b919050565b80356001600160601b0381168114610371575f80fd5b5f805f806080858703121561039f575f80fd5b6103a88561035b565b93506103b66020860161035b565b92506103c46040860161035b565b91506103d260608601610376565b905092959194509250565b5f805f606084860312156103ef575f80fd5b6103f88461035b565b92506104066020850161035b565b915061041460408501610376565b90509250925092565b5f6020828403121561042d575f80fd5b5051919050565b5f60208284031215610444575f80fd5b81518015158114610236575f80fd5b5f82518060208501845e5f92019182525091905056fea26469706673582212205f34ee826179979a1994401fb81767c75e8cf7caddde2e10872d95c77dcb6e8564736f6c634300081a0033",
606
+ "bytecode": "0x610100604052348015610010575f80fd5b5060405161199d38038061199d83398101604081905261002f916102b0565b8383838361003c81610242565b50604051633334d16b60e01b81526001600160a01b038416600482015273__$fb599632d08395912d9d70eb2f0f93b5e2$__90633334d16b90602401602060405180830381865af4158015610093573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906100b79190610301565b6100e457604051633c165c4d60e01b81526001600160a01b03841660048201526024015b60405180910390fd5b6001600160a01b03811661010b57604051630d0482ff60e31b815260040160405180910390fd5b6001600160a01b03838116608081905290831660c0819052604051632f2a35f760e11b81526004810191909152635e546bee90602401602060405180830381865afa15801561015c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101809190610327565b6001600160601b031660e0819052604051630a4d29dd60e31b8152600481019190915273__$94a2c899be079b00d952d0d84fffaa5c34$__906352694ee890602401602060405180830381865af41580156101dd573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102019190610301565b1561022a57604051634fd16de160e11b81526001600160a01b03831660048201526024016100db565b6001600160a01b031660a0525061034d945050505050565b5f80546001600160a01b0319166001600160a01b0383169081179091556040519081527f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9060200160405180910390a150565b80516001600160a01b03811681146102ab575f80fd5b919050565b5f805f80608085870312156102c3575f80fd5b6102cc85610295565b93506102da60208601610295565b92506102e860408601610295565b91506102f660608601610295565b905092959194509250565b5f60208284031215610311575f80fd5b81518015158114610320575f80fd5b9392505050565b5f60208284031215610337575f80fd5b81516001600160601b0381168114610320575f80fd5b60805160a05160c05160e0516115b56103e85f395f818161011b015281816106be015281816108a8015281816109960152610adf01525f6101d801525f81816101800152818161075801528181610b7b01528181610c1201528181610ea001528181610fad0152818161109501526111a201525f818160ba015281816102660152818161032c0152818161047f015261053e01526115b55ff3fe608060405234801561000f575f80fd5b50600436106100b1575f3560e01c806382bfefc81161006e57806382bfefc81461017b5780638fb36037146101a2578063bf7e214f146101c3578063ce0f75de146101d3578063deaa59df146101fa578063ea0b3c731461020d575f80fd5b806306433b1b146100b557806313299604146100f957806367ed5f3614610101578063707ddfae1461011657806379fc35e8146101555780637a9e5e4b14610168575b5f80fd5b6100dc7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100dc610220565b61011461010f3660046114c6565b610247565b005b61013d7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160601b0390911681526020016100f0565b6101146101633660046114c6565b61030d565b6101146101763660046114fd565b6103ca565b6100dc7f000000000000000000000000000000000000000000000000000000000000000081565b6101aa61043e565b6040516001600160e01b031990911681526020016100f0565b5f546001600160a01b03166100dc565b6100dc7f000000000000000000000000000000000000000000000000000000000000000081565b6101146102083660046114fd565b610460565b61011461021b3660046114c6565b61051f565b6001545f906001600160a01b031661023757503090565b506001546001600160a01b031690565b60408051631703989960e21b81523360048201526008602482015290517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691635c0e62649160448083019260209291908290030181865afa1580156102b7573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102db9190611518565b6102ff57604051630542d5c160e01b81523360048201526024015b60405180910390fd5b61030982826105dc565b5050565b60408051631703989960e21b81523360048201526008602482015290517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691635c0e62649160448083019260209291908290030181865afa15801561037d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103a19190611518565b6103c057604051630542d5c160e01b81523360048201526024016102f6565b61030982826105f0565b5f5433906001600160a01b031681146104005760405162d1953b60e31b81526001600160a01b03821660048201526024016102f6565b816001600160a01b03163b5f03610435576040516361798f2f60e11b81526001600160a01b03831660048201526024016102f6565b61030982610604565b5f8054600160a01b900460ff1661045457505f90565b50638fb3603760e01b90565b60408051631703989960e21b81523360048201526008602482015290517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691635c0e62649160448083019260209291908290030181865afa1580156104d0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104f49190611518565b61051357604051630542d5c160e01b81523360048201526024016102f6565b61051c81610657565b50565b60408051631703989960e21b81523360048201526008602482015290517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691635c0e62649160448083019260209291908290030181865afa15801561058f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105b39190611518565b6105d257604051630542d5c160e01b81523360048201526024016102f6565b610309828261096b565b6103096105e7610220565b83836001610b65565b610309826105fc610220565b836001610b65565b5f80546001600160a01b0319166001600160a01b0383169081179091556040519081527f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9060200160405180910390a150565b6001546001600160a01b039081169082168190036106885760405163b779402d60e01b815260040160405180910390fd5b5f610691610220565b600180546001600160a01b0319166001600160a01b03868116918217909255604080516001600160601b037f000000000000000000000000000000000000000000000000000000000000000016815292861660208401528201529091507fe17b63a940799420dfdbb7bc7d4f264ef924329d7a5135cb82b1162c86ea02f59060600160405180910390a16040516370a0823160e01b81526001600160a01b0382811660048301525f9173__$3bac17678db7ae928afa209f2f44deec9c$__91634c41dd96917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa15801561079f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107c39190611537565b6040518263ffffffff1660e01b81526004016107e191815260200190565b602060405180830381865af41580156107fc573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610820919061154e565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$3bac17678db7ae928afa209f2f44deec9c$__906330b8415f90602401602060405180830381865af4158015610879573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061089d9190611518565b1561096557604080517f00000000000000000000000000000000000000000000000000000000000000006001600160601b0390811682526001600160a01b0386811660208401528716828401528316606082015290517f85bc564e97c299d12e3a61734d4f9ca9aff69b15059d1b177825a456c8a317d99181900360800190a16001600160a01b03831661093d576109383085836001610b65565b610965565b6001600160a01b038416610958576109388330836001610b65565b6109658385836001610b65565b50505050565b6001546001600160a01b0316156109d95760015460405163266a456b60e11b81526001600160601b037f00000000000000000000000000000000000000000000000000000000000000001660048201523060248201526001600160a01b0390911660448201526064016102f6565b60405163046e44af60e11b81526001600160601b03821660048201525f9073__$3bac17678db7ae928afa209f2f44deec9c$__906308dc895e90602401602060405180830381865af4158015610a31573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a559190611537565b90505f610acc8373__$3bac17678db7ae928afa209f2f44deec9c$__636ac5db196040518163ffffffff1660e01b8152600401602060405180830381865af4158015610aa3573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ac7919061154e565b610c99565b15610ad957505f19905060015b604080517f00000000000000000000000000000000000000000000000000000000000000006001600160601b0390811682523060208301526001600160a01b0387168284015285166060820152821515608082015290517f87afdceff4fac7ed560df07efe2dbb4585adc663dd5fab969376f20d70cb7a449181900360a00190a1610965843084610d24565b8015610b7557610b758483610de1565b604080517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03908116825286811660208301528516818301526001600160601b038416606082015290517fd8dad5de52bc07319fbcdbf42f954f497c3a267ce0cc264584726fa7a3b322079181900360800190a160405163046e44af60e11b81526001600160601b0383166004820152610965907f0000000000000000000000000000000000000000000000000000000000000000908690869073__$3bac17678db7ae928afa209f2f44deec9c$__906308dc895e90602401602060405180830381865af4158015610c70573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c949190611537565b61125c565b60405163c4cade9d60e01b81526001600160601b038084166004830152821660248201525f9073__$3bac17678db7ae928afa209f2f44deec9c$__9063c4cade9d90604401602060405180830381865af4158015610cf9573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d1d9190611518565b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610d758482611295565b610965576040516001600160a01b0384811660248301525f6044830152610dd791869182169063095ea7b3906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611336565b6109658482611336565b604051630a4d29dd60e31b81526001600160601b038216600482015273__$3bac17678db7ae928afa209f2f44deec9c$__906352694ee890602401602060405180830381865af4158015610e37573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5b9190611518565b15610e795760405163ba9cf25b60e01b815260040160405180910390fd5b604051636eb1769f60e11b81526001600160a01b0383811660048301523060248301525f917f00000000000000000000000000000000000000000000000000000000000000009091169063dd62ed3e90604401602060405180830381865afa158015610ee7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f0b9190611537565b60405163046e44af60e11b81526001600160601b038416600482015290915073__$3bac17678db7ae928afa209f2f44deec9c$__906308dc895e90602401602060405180830381865af4158015610f64573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f889190611537565b8110156110745760405163046e44af60e11b81526001600160601b03831660048201527f00000000000000000000000000000000000000000000000000000000000000009084903090849073__$3bac17678db7ae928afa209f2f44deec9c$__906308dc895e90602401602060405180830381865af415801561100d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110319190611537565b6040516319d2916b60e21b81526001600160a01b03958616600482015293851660248501529390911660448301526064820152608481019190915260a4016102f6565b6040516370a0823160e01b81526001600160a01b0384811660048301525f917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa1580156110dc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111009190611537565b60405163046e44af60e11b81526001600160601b038516600482015290915073__$3bac17678db7ae928afa209f2f44deec9c$__906308dc895e90602401602060405180830381865af4158015611159573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061117d9190611537565b8110156109655760405163046e44af60e11b81526001600160601b03841660048201527f0000000000000000000000000000000000000000000000000000000000000000908590839073__$3bac17678db7ae928afa209f2f44deec9c$__906308dc895e90602401602060405180830381865af4158015611200573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112249190611537565b604051631288e44360e21b81526001600160a01b039485166004820152939092166024840152604483015260648201526084016102f6565b6040516001600160a01b0384811660248301528381166044830152606482018390526109659186918216906323b872dd90608401610da5565b5f805f846001600160a01b0316846040516112b09190611569565b5f604051808303815f865af19150503d805f81146112e9576040519150601f19603f3d011682016040523d82523d5f602084013e6112ee565b606091505b50915091508180156113185750805115806113185750808060200190518101906113189190611518565b801561132d57505f856001600160a01b03163b115b95945050505050565b5f61134a6001600160a01b0384168361139c565b905080515f1415801561136e57508080602001905181019061136c9190611518565b155b1561139757604051635274afe760e01b81526001600160a01b03841660048201526024016102f6565b505050565b6060610d1d83835f845f80856001600160a01b031684866040516113c09190611569565b5f6040518083038185875af1925050503d805f81146113fa576040519150601f19603f3d011682016040523d82523d5f602084013e6113ff565b606091505b509150915061140f868383611419565b9695505050505050565b60608261142e5761142982611475565b610d1d565b815115801561144557506001600160a01b0384163b155b1561146e57604051639996b31560e01b81526001600160a01b03851660048201526024016102f6565b5080610d1d565b8051156114855780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6001600160a01b038116811461051c575f80fd5b6001600160601b038116811461051c575f80fd5b5f80604083850312156114d7575f80fd5b82356114e28161149e565b915060208301356114f2816114b2565b809150509250929050565b5f6020828403121561150d575f80fd5b8135610d1d8161149e565b5f60208284031215611528575f80fd5b81518015158114610d1d575f80fd5b5f60208284031215611547575f80fd5b5051919050565b5f6020828403121561155e575f80fd5b8151610d1d816114b2565b5f82518060208501845e5f92019182525091905056fea2646970667358221220e5a8a8a57b0e7b59c7ea6216b3c914f0f2475a7af12cd3b656af9492428a06d064736f6c634300081a0033",
607
+ "deployedBytecode": "0x608060405234801561000f575f80fd5b50600436106100b1575f3560e01c806382bfefc81161006e57806382bfefc81461017b5780638fb36037146101a2578063bf7e214f146101c3578063ce0f75de146101d3578063deaa59df146101fa578063ea0b3c731461020d575f80fd5b806306433b1b146100b557806313299604146100f957806367ed5f3614610101578063707ddfae1461011657806379fc35e8146101555780637a9e5e4b14610168575b5f80fd5b6100dc7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100dc610220565b61011461010f3660046114c6565b610247565b005b61013d7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160601b0390911681526020016100f0565b6101146101633660046114c6565b61030d565b6101146101763660046114fd565b6103ca565b6100dc7f000000000000000000000000000000000000000000000000000000000000000081565b6101aa61043e565b6040516001600160e01b031990911681526020016100f0565b5f546001600160a01b03166100dc565b6100dc7f000000000000000000000000000000000000000000000000000000000000000081565b6101146102083660046114fd565b610460565b61011461021b3660046114c6565b61051f565b6001545f906001600160a01b031661023757503090565b506001546001600160a01b031690565b60408051631703989960e21b81523360048201526008602482015290517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691635c0e62649160448083019260209291908290030181865afa1580156102b7573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102db9190611518565b6102ff57604051630542d5c160e01b81523360048201526024015b60405180910390fd5b61030982826105dc565b5050565b60408051631703989960e21b81523360048201526008602482015290517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691635c0e62649160448083019260209291908290030181865afa15801561037d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103a19190611518565b6103c057604051630542d5c160e01b81523360048201526024016102f6565b61030982826105f0565b5f5433906001600160a01b031681146104005760405162d1953b60e31b81526001600160a01b03821660048201526024016102f6565b816001600160a01b03163b5f03610435576040516361798f2f60e11b81526001600160a01b03831660048201526024016102f6565b61030982610604565b5f8054600160a01b900460ff1661045457505f90565b50638fb3603760e01b90565b60408051631703989960e21b81523360048201526008602482015290517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691635c0e62649160448083019260209291908290030181865afa1580156104d0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104f49190611518565b61051357604051630542d5c160e01b81523360048201526024016102f6565b61051c81610657565b50565b60408051631703989960e21b81523360048201526008602482015290517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691635c0e62649160448083019260209291908290030181865afa15801561058f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105b39190611518565b6105d257604051630542d5c160e01b81523360048201526024016102f6565b610309828261096b565b6103096105e7610220565b83836001610b65565b610309826105fc610220565b836001610b65565b5f80546001600160a01b0319166001600160a01b0383169081179091556040519081527f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9060200160405180910390a150565b6001546001600160a01b039081169082168190036106885760405163b779402d60e01b815260040160405180910390fd5b5f610691610220565b600180546001600160a01b0319166001600160a01b03868116918217909255604080516001600160601b037f000000000000000000000000000000000000000000000000000000000000000016815292861660208401528201529091507fe17b63a940799420dfdbb7bc7d4f264ef924329d7a5135cb82b1162c86ea02f59060600160405180910390a16040516370a0823160e01b81526001600160a01b0382811660048301525f9173__$3bac17678db7ae928afa209f2f44deec9c$__91634c41dd96917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa15801561079f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107c39190611537565b6040518263ffffffff1660e01b81526004016107e191815260200190565b602060405180830381865af41580156107fc573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610820919061154e565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$3bac17678db7ae928afa209f2f44deec9c$__906330b8415f90602401602060405180830381865af4158015610879573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061089d9190611518565b1561096557604080517f00000000000000000000000000000000000000000000000000000000000000006001600160601b0390811682526001600160a01b0386811660208401528716828401528316606082015290517f85bc564e97c299d12e3a61734d4f9ca9aff69b15059d1b177825a456c8a317d99181900360800190a16001600160a01b03831661093d576109383085836001610b65565b610965565b6001600160a01b038416610958576109388330836001610b65565b6109658385836001610b65565b50505050565b6001546001600160a01b0316156109d95760015460405163266a456b60e11b81526001600160601b037f00000000000000000000000000000000000000000000000000000000000000001660048201523060248201526001600160a01b0390911660448201526064016102f6565b60405163046e44af60e11b81526001600160601b03821660048201525f9073__$3bac17678db7ae928afa209f2f44deec9c$__906308dc895e90602401602060405180830381865af4158015610a31573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a559190611537565b90505f610acc8373__$3bac17678db7ae928afa209f2f44deec9c$__636ac5db196040518163ffffffff1660e01b8152600401602060405180830381865af4158015610aa3573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ac7919061154e565b610c99565b15610ad957505f19905060015b604080517f00000000000000000000000000000000000000000000000000000000000000006001600160601b0390811682523060208301526001600160a01b0387168284015285166060820152821515608082015290517f87afdceff4fac7ed560df07efe2dbb4585adc663dd5fab969376f20d70cb7a449181900360a00190a1610965843084610d24565b8015610b7557610b758483610de1565b604080517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03908116825286811660208301528516818301526001600160601b038416606082015290517fd8dad5de52bc07319fbcdbf42f954f497c3a267ce0cc264584726fa7a3b322079181900360800190a160405163046e44af60e11b81526001600160601b0383166004820152610965907f0000000000000000000000000000000000000000000000000000000000000000908690869073__$3bac17678db7ae928afa209f2f44deec9c$__906308dc895e90602401602060405180830381865af4158015610c70573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c949190611537565b61125c565b60405163c4cade9d60e01b81526001600160601b038084166004830152821660248201525f9073__$3bac17678db7ae928afa209f2f44deec9c$__9063c4cade9d90604401602060405180830381865af4158015610cf9573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d1d9190611518565b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610d758482611295565b610965576040516001600160a01b0384811660248301525f6044830152610dd791869182169063095ea7b3906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611336565b6109658482611336565b604051630a4d29dd60e31b81526001600160601b038216600482015273__$3bac17678db7ae928afa209f2f44deec9c$__906352694ee890602401602060405180830381865af4158015610e37573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5b9190611518565b15610e795760405163ba9cf25b60e01b815260040160405180910390fd5b604051636eb1769f60e11b81526001600160a01b0383811660048301523060248301525f917f00000000000000000000000000000000000000000000000000000000000000009091169063dd62ed3e90604401602060405180830381865afa158015610ee7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f0b9190611537565b60405163046e44af60e11b81526001600160601b038416600482015290915073__$3bac17678db7ae928afa209f2f44deec9c$__906308dc895e90602401602060405180830381865af4158015610f64573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f889190611537565b8110156110745760405163046e44af60e11b81526001600160601b03831660048201527f00000000000000000000000000000000000000000000000000000000000000009084903090849073__$3bac17678db7ae928afa209f2f44deec9c$__906308dc895e90602401602060405180830381865af415801561100d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110319190611537565b6040516319d2916b60e21b81526001600160a01b03958616600482015293851660248501529390911660448301526064820152608481019190915260a4016102f6565b6040516370a0823160e01b81526001600160a01b0384811660048301525f917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa1580156110dc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111009190611537565b60405163046e44af60e11b81526001600160601b038516600482015290915073__$3bac17678db7ae928afa209f2f44deec9c$__906308dc895e90602401602060405180830381865af4158015611159573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061117d9190611537565b8110156109655760405163046e44af60e11b81526001600160601b03841660048201527f0000000000000000000000000000000000000000000000000000000000000000908590839073__$3bac17678db7ae928afa209f2f44deec9c$__906308dc895e90602401602060405180830381865af4158015611200573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112249190611537565b604051631288e44360e21b81526001600160a01b039485166004820152939092166024840152604483015260648201526084016102f6565b6040516001600160a01b0384811660248301528381166044830152606482018390526109659186918216906323b872dd90608401610da5565b5f805f846001600160a01b0316846040516112b09190611569565b5f604051808303815f865af19150503d805f81146112e9576040519150601f19603f3d011682016040523d82523d5f602084013e6112ee565b606091505b50915091508180156113185750805115806113185750808060200190518101906113189190611518565b801561132d57505f856001600160a01b03163b115b95945050505050565b5f61134a6001600160a01b0384168361139c565b905080515f1415801561136e57508080602001905181019061136c9190611518565b155b1561139757604051635274afe760e01b81526001600160a01b03841660048201526024016102f6565b505050565b6060610d1d83835f845f80856001600160a01b031684866040516113c09190611569565b5f6040518083038185875af1925050503d805f81146113fa576040519150601f19603f3d011682016040523d82523d5f602084013e6113ff565b606091505b509150915061140f868383611419565b9695505050505050565b60608261142e5761142982611475565b610d1d565b815115801561144557506001600160a01b0384163b155b1561146e57604051639996b31560e01b81526001600160a01b03851660048201526024016102f6565b5080610d1d565b8051156114855780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6001600160a01b038116811461051c575f80fd5b6001600160601b038116811461051c575f80fd5b5f80604083850312156114d7575f80fd5b82356114e28161149e565b915060208301356114f2816114b2565b809150509250929050565b5f6020828403121561150d575f80fd5b8135610d1d8161149e565b5f60208284031215611528575f80fd5b81518015158114610d1d575f80fd5b5f60208284031215611547575f80fd5b5051919050565b5f6020828403121561155e575f80fd5b8151610d1d816114b2565b5f82518060208501845e5f92019182525091905056fea2646970667358221220e5a8a8a57b0e7b59c7ea6216b3c914f0f2475a7af12cd3b656af9492428a06d064736f6c634300081a0033",
122
608
  "linkReferences": {
609
+ "contracts/shared/ContractLib.sol": {
610
+ "ContractLib": [
611
+ {
612
+ "length": 20,
613
+ "start": 91
614
+ }
615
+ ]
616
+ },
123
617
  "contracts/type/Amount.sol": {
124
618
  "AmountLib": [
125
619
  {
126
620
  "length": 20,
127
- "start": 311
621
+ "start": 2852
622
+ },
623
+ {
624
+ "length": 20,
625
+ "start": 3113
128
626
  },
129
627
  {
130
628
  "length": 20,
131
- "start": 465
629
+ "start": 3553
630
+ },
631
+ {
632
+ "length": 20,
633
+ "start": 3654
634
+ },
635
+ {
636
+ "length": 20,
637
+ "start": 4128
638
+ },
639
+ {
640
+ "length": 20,
641
+ "start": 4265
642
+ },
643
+ {
644
+ "length": 20,
645
+ "start": 4583
646
+ },
647
+ {
648
+ "length": 20,
649
+ "start": 4884
650
+ },
651
+ {
652
+ "length": 20,
653
+ "start": 5053
654
+ },
655
+ {
656
+ "length": 20,
657
+ "start": 5385
658
+ },
659
+ {
660
+ "length": 20,
661
+ "start": 5552
662
+ }
663
+ ]
664
+ },
665
+ "contracts/type/NftId.sol": {
666
+ "NftIdLib": [
667
+ {
668
+ "length": 20,
669
+ "start": 421
132
670
  }
133
671
  ]
134
672
  }
@@ -138,11 +676,47 @@
138
676
  "AmountLib": [
139
677
  {
140
678
  "length": 20,
141
- "start": 177
679
+ "start": 1852
680
+ },
681
+ {
682
+ "length": 20,
683
+ "start": 2113
684
+ },
685
+ {
686
+ "length": 20,
687
+ "start": 2553
688
+ },
689
+ {
690
+ "length": 20,
691
+ "start": 2654
692
+ },
693
+ {
694
+ "length": 20,
695
+ "start": 3128
696
+ },
697
+ {
698
+ "length": 20,
699
+ "start": 3265
700
+ },
701
+ {
702
+ "length": 20,
703
+ "start": 3583
704
+ },
705
+ {
706
+ "length": 20,
707
+ "start": 3884
708
+ },
709
+ {
710
+ "length": 20,
711
+ "start": 4053
712
+ },
713
+ {
714
+ "length": 20,
715
+ "start": 4385
142
716
  },
143
717
  {
144
718
  "length": 20,
145
- "start": 331
719
+ "start": 4552
146
720
  }
147
721
  ]
148
722
  }