@etherisc/gif-next 0.0.2-f2b0fa2-473 → 0.0.2-f4f92b3-338

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. package/README.md +67 -1
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +656 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +329 -90
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → components/IComponent.sol/IComponent.json} +171 -158
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +496 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +568 -2
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +596 -5
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +360 -118
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +342 -147
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  33. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  36. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  37. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  39. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  40. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  41. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  42. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
  43. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  44. package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +86 -2
  45. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  46. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1657 -28
  47. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  48. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +162 -18
  49. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  50. package/artifacts/contracts/instance/Instance.sol/Instance.json +232 -632
  51. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  52. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +231 -114
  53. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  54. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +182 -58
  55. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  56. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +328 -67
  57. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  58. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +72 -23
  59. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  60. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
  61. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  62. package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +138 -16
  63. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  64. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  65. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  66. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +2 -2
  67. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  68. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  69. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  70. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +59 -16
  71. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  72. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  73. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  74. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  75. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  76. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  77. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  78. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1102 -0
  79. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  80. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +449 -0
  81. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  82. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +772 -0
  83. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  84. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +437 -0
  85. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  86. package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IBundleService.sol/IBundleService.json} +295 -46
  87. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  88. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +13 -18
  89. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  90. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +766 -0
  91. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  92. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +15 -82
  93. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  94. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +25 -245
  95. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  96. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1227 -0
  97. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  98. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +505 -0
  99. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  100. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +806 -0
  101. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  102. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +437 -0
  103. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  104. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +856 -0
  105. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  106. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +437 -0
  107. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  108. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +2 -2
  109. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  110. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +339 -59
  111. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  112. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +220 -111
  113. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  114. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  115. package/artifacts/contracts/registry/Registry.sol/Registry.json +301 -188
  116. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  117. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  118. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  119. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +69 -130
  120. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  121. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +51 -91
  122. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  123. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  124. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  125. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +394 -0
  126. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  127. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  128. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  129. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  130. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  131. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +0 -5
  132. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  133. package/artifacts/contracts/shared/IService.sol/IService.json +13 -18
  134. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  135. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  136. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +19 -6
  137. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  138. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +19 -6
  139. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  140. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +19 -11
  141. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  142. package/artifacts/contracts/shared/Service.sol/Service.json +26 -18
  143. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  144. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  145. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  146. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  147. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  148. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  149. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +19 -11
  150. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  151. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  152. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  153. package/artifacts/contracts/test/TestService.sol/TestService.json +44 -36
  154. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  156. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  157. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  158. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +2 -2
  159. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  160. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  161. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  162. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  163. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  164. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  165. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  166. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  167. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  168. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  169. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  170. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  171. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  172. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  173. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  175. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  176. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  177. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  178. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  179. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  180. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  182. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  183. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  184. package/contracts/components/Component.sol +222 -0
  185. package/contracts/components/Distribution.sol +33 -55
  186. package/contracts/components/IComponent.sol +43 -0
  187. package/contracts/components/IDistributionComponent.sol +5 -1
  188. package/contracts/components/IPoolComponent.sol +11 -3
  189. package/contracts/components/IProductComponent.sol +7 -3
  190. package/contracts/components/Pool.sol +65 -83
  191. package/contracts/components/Product.sol +70 -109
  192. package/contracts/instance/BundleManager.sol +125 -0
  193. package/contracts/instance/Cloneable.sol +46 -0
  194. package/contracts/instance/IInstance.sol +54 -10
  195. package/contracts/instance/IInstanceService.sol +24 -1
  196. package/contracts/instance/Instance.sol +76 -243
  197. package/contracts/instance/InstanceAccessManager.sol +88 -78
  198. package/contracts/instance/InstanceReader.sol +34 -21
  199. package/contracts/instance/InstanceService.sol +311 -51
  200. package/contracts/instance/InstanceServiceManager.sol +10 -12
  201. package/contracts/instance/ObjectManager.sol +84 -0
  202. package/contracts/instance/base/ComponentService.sol +134 -0
  203. package/contracts/instance/module/IAccess.sol +27 -17
  204. package/contracts/instance/module/IBundle.sol +1 -0
  205. package/contracts/instance/module/ISetup.sol +3 -0
  206. package/contracts/instance/service/BundleService.sol +293 -0
  207. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  208. package/contracts/instance/service/DistributionService.sol +106 -0
  209. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  210. package/contracts/instance/service/IBundleService.sol +44 -0
  211. package/contracts/instance/service/IPolicyService.sol +94 -0
  212. package/contracts/instance/service/IPoolService.sol +6 -23
  213. package/contracts/instance/service/IProductService.sol +6 -73
  214. package/contracts/instance/service/PolicyService.sol +538 -0
  215. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  216. package/contracts/instance/service/PoolService.sol +109 -0
  217. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  218. package/contracts/instance/service/ProductService.sol +232 -0
  219. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  220. package/contracts/registry/ChainNft.sol +1 -1
  221. package/contracts/registry/IRegistry.sol +47 -6
  222. package/contracts/registry/IRegistryService.sol +44 -14
  223. package/contracts/registry/Registry.sol +243 -214
  224. package/contracts/registry/RegistryAccessManager.sol +216 -0
  225. package/contracts/registry/RegistryService.sol +81 -258
  226. package/contracts/registry/RegistryServiceManager.sol +20 -22
  227. package/contracts/registry/ReleaseManager.sol +332 -0
  228. package/contracts/registry/TokenRegistry.sol +112 -0
  229. package/contracts/shared/ERC165.sol +6 -2
  230. package/contracts/shared/IRegisterable.sol +1 -3
  231. package/contracts/shared/IService.sol +2 -1
  232. package/contracts/shared/NftOwnable.sol +7 -4
  233. package/contracts/shared/ProxyManager.sol +1 -1
  234. package/contracts/shared/Registerable.sol +11 -14
  235. package/contracts/shared/Service.sol +14 -8
  236. package/contracts/test/TestService.sol +3 -2
  237. package/contracts/types/NftIdSet.sol +26 -24
  238. package/contracts/types/RoleId.sol +14 -6
  239. package/contracts/types/StateId.sol +4 -0
  240. package/contracts/types/Version.sol +4 -1
  241. package/package.json +1 -1
  242. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  243. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -314
  244. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  245. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -267
  246. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  247. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  248. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1119
  249. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  250. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  251. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  252. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  253. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  254. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  255. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
  256. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  257. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
  258. package/contracts/components/BaseComponent.sol +0 -86
  259. package/contracts/components/IBaseComponent.sol +0 -24
  260. package/contracts/instance/AccessManagedSimple.sol +0 -114
  261. package/contracts/instance/AccessManagerSimple.sol +0 -682
  262. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  263. package/contracts/instance/base/ComponentServiceBase.sol +0 -49
  264. package/contracts/instance/base/IInstanceBase.sol +0 -23
  265. package/contracts/instance/service/ComponentOwnerService.sol +0 -317
  266. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  267. package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -3,6 +3,66 @@
3
3
  "contractName": "Pool",
4
4
  "sourceName": "contracts/components/Pool.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
  {
@@ -12,108 +72,101 @@
12
72
  },
13
73
  {
14
74
  "internalType": "NftId",
15
- "name": "instanceNftId",
75
+ "name": "nftId",
16
76
  "type": "uint96"
17
- },
77
+ }
78
+ ],
79
+ "name": "ErrorAlreadyLinked",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [
18
84
  {
19
85
  "internalType": "NftId",
20
- "name": "productNftId",
86
+ "name": "instanceNftId",
21
87
  "type": "uint96"
22
88
  },
23
89
  {
24
90
  "internalType": "address",
25
- "name": "token",
91
+ "name": "instance",
26
92
  "type": "address"
27
- },
28
- {
29
- "internalType": "bool",
30
- "name": "isInterceptor",
31
- "type": "bool"
32
- },
33
- {
34
- "internalType": "bool",
35
- "name": "verifying",
36
- "type": "bool"
37
- },
38
- {
39
- "internalType": "UFixed",
40
- "name": "collateralizationLevel",
41
- "type": "uint256"
42
- },
93
+ }
94
+ ],
95
+ "name": "ErrorComponentNotInstance",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [
43
100
  {
44
- "components": [
45
- {
46
- "internalType": "UFixed",
47
- "name": "fractionalFee",
48
- "type": "uint256"
49
- },
50
- {
51
- "internalType": "uint256",
52
- "name": "fixedFee",
53
- "type": "uint256"
54
- }
55
- ],
56
- "internalType": "struct Fee",
57
- "name": "poolFee",
58
- "type": "tuple"
59
- },
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": [
60
116
  {
61
- "components": [
62
- {
63
- "internalType": "UFixed",
64
- "name": "fractionalFee",
65
- "type": "uint256"
66
- },
67
- {
68
- "internalType": "uint256",
69
- "name": "fixedFee",
70
- "type": "uint256"
71
- }
72
- ],
73
- "internalType": "struct Fee",
74
- "name": "stakingFee",
75
- "type": "tuple"
117
+ "internalType": "address",
118
+ "name": "caller",
119
+ "type": "address"
76
120
  },
77
121
  {
78
- "components": [
79
- {
80
- "internalType": "UFixed",
81
- "name": "fractionalFee",
82
- "type": "uint256"
83
- },
84
- {
85
- "internalType": "uint256",
86
- "name": "fixedFee",
87
- "type": "uint256"
88
- }
89
- ],
90
- "internalType": "struct Fee",
91
- "name": "performanceFee",
92
- "type": "tuple"
93
- },
122
+ "internalType": "uint64",
123
+ "name": "requiredRoleIdNum",
124
+ "type": "uint64"
125
+ }
126
+ ],
127
+ "name": "ErrorComponentUnauthorized",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [
94
132
  {
95
133
  "internalType": "address",
96
- "name": "initialOwner",
134
+ "name": "newWallet",
97
135
  "type": "address"
98
136
  }
99
137
  ],
100
- "stateMutability": "nonpayable",
101
- "type": "constructor"
138
+ "name": "ErrorComponentWalletAddressIsSameAsCurrent",
139
+ "type": "error"
140
+ },
141
+ {
142
+ "inputs": [],
143
+ "name": "ErrorComponentWalletAddressZero",
144
+ "type": "error"
102
145
  },
103
146
  {
104
147
  "inputs": [
105
148
  {
106
149
  "internalType": "address",
107
- "name": "registry",
150
+ "name": "oldWallet",
108
151
  "type": "address"
109
152
  },
110
153
  {
111
- "internalType": "NftId",
112
- "name": "nftId",
113
- "type": "uint96"
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"
114
167
  }
115
168
  ],
116
- "name": "ErrorAlreadyLinked",
169
+ "name": "ErrorComponentWalletAllowanceTooSmall",
117
170
  "type": "error"
118
171
  },
119
172
  {
@@ -181,6 +234,11 @@
181
234
  "name": "ErrorRegistryNotInitialized",
182
235
  "type": "error"
183
236
  },
237
+ {
238
+ "inputs": [],
239
+ "name": "FailedInnerCall",
240
+ "type": "error"
241
+ },
184
242
  {
185
243
  "inputs": [],
186
244
  "name": "InvalidInitialization",
@@ -191,6 +249,30 @@
191
249
  "name": "NotInitializing",
192
250
  "type": "error"
193
251
  },
252
+ {
253
+ "inputs": [
254
+ {
255
+ "internalType": "address",
256
+ "name": "token",
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
+ },
194
276
  {
195
277
  "anonymous": false,
196
278
  "inputs": [
@@ -204,6 +286,44 @@
204
286
  "name": "Initialized",
205
287
  "type": "event"
206
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"
310
+ },
311
+ {
312
+ "indexed": false,
313
+ "internalType": "address",
314
+ "name": "to",
315
+ "type": "address"
316
+ },
317
+ {
318
+ "indexed": false,
319
+ "internalType": "uint256",
320
+ "name": "amount",
321
+ "type": "uint256"
322
+ }
323
+ ],
324
+ "name": "LogComponentWalletTokensTransferred",
325
+ "type": "event"
326
+ },
207
327
  {
208
328
  "anonymous": false,
209
329
  "inputs": [
@@ -229,6 +349,19 @@
229
349
  "name": "LogUnderwrittenByPool",
230
350
  "type": "event"
231
351
  },
352
+ {
353
+ "inputs": [],
354
+ "name": "CONTRACT_LOCATION_V1",
355
+ "outputs": [
356
+ {
357
+ "internalType": "bytes32",
358
+ "name": "",
359
+ "type": "bytes32"
360
+ }
361
+ ],
362
+ "stateMutability": "view",
363
+ "type": "function"
364
+ },
232
365
  {
233
366
  "inputs": [],
234
367
  "name": "REGISTERABLE_LOCATION_V1",
@@ -242,6 +375,19 @@
242
375
  "stateMutability": "view",
243
376
  "type": "function"
244
377
  },
378
+ {
379
+ "inputs": [],
380
+ "name": "authority",
381
+ "outputs": [
382
+ {
383
+ "internalType": "address",
384
+ "name": "",
385
+ "type": "address"
386
+ }
387
+ ],
388
+ "stateMutability": "view",
389
+ "type": "function"
390
+ },
245
391
  {
246
392
  "inputs": [
247
393
  {
@@ -344,13 +490,21 @@
344
490
  }
345
491
  ],
346
492
  "internalType": "struct IRegistry.ObjectInfo",
347
- "name": "",
493
+ "name": "info",
348
494
  "type": "tuple"
349
- },
495
+ }
496
+ ],
497
+ "stateMutability": "view",
498
+ "type": "function"
499
+ },
500
+ {
501
+ "inputs": [],
502
+ "name": "getInitialOwner",
503
+ "outputs": [
350
504
  {
351
- "internalType": "bytes",
505
+ "internalType": "address",
352
506
  "name": "",
353
- "type": "bytes"
507
+ "type": "address"
354
508
  }
355
509
  ],
356
510
  "stateMutability": "view",
@@ -369,6 +523,32 @@
369
523
  "stateMutability": "view",
370
524
  "type": "function"
371
525
  },
526
+ {
527
+ "inputs": [],
528
+ "name": "getInstanceService",
529
+ "outputs": [
530
+ {
531
+ "internalType": "contract IInstanceService",
532
+ "name": "",
533
+ "type": "address"
534
+ }
535
+ ],
536
+ "stateMutability": "view",
537
+ "type": "function"
538
+ },
539
+ {
540
+ "inputs": [],
541
+ "name": "getName",
542
+ "outputs": [
543
+ {
544
+ "internalType": "string",
545
+ "name": "name",
546
+ "type": "string"
547
+ }
548
+ ],
549
+ "stateMutability": "view",
550
+ "type": "function"
551
+ },
372
552
  {
373
553
  "inputs": [],
374
554
  "name": "getNftId",
@@ -408,6 +588,19 @@
408
588
  "stateMutability": "view",
409
589
  "type": "function"
410
590
  },
591
+ {
592
+ "inputs": [],
593
+ "name": "getProductService",
594
+ "outputs": [
595
+ {
596
+ "internalType": "contract IProductService",
597
+ "name": "",
598
+ "type": "address"
599
+ }
600
+ ],
601
+ "stateMutability": "view",
602
+ "type": "function"
603
+ },
411
604
  {
412
605
  "inputs": [],
413
606
  "name": "getRegistry",
@@ -498,6 +691,11 @@
498
691
  "name": "isIntercepting",
499
692
  "type": "bool"
500
693
  },
694
+ {
695
+ "internalType": "bool",
696
+ "name": "isConfirmingApplication",
697
+ "type": "bool"
698
+ },
501
699
  {
502
700
  "internalType": "address",
503
701
  "name": "wallet",
@@ -540,17 +738,30 @@
540
738
  },
541
739
  {
542
740
  "inputs": [],
543
- "name": "isVerifying",
741
+ "name": "isConfirmingApplication",
544
742
  "outputs": [
545
743
  {
546
744
  "internalType": "bool",
547
- "name": "verifying",
745
+ "name": "isConfirmingApplication",
548
746
  "type": "bool"
549
747
  }
550
748
  ],
551
749
  "stateMutability": "view",
552
750
  "type": "function"
553
751
  },
752
+ {
753
+ "inputs": [],
754
+ "name": "isConsumingScheduledOp",
755
+ "outputs": [
756
+ {
757
+ "internalType": "bytes4",
758
+ "name": "",
759
+ "type": "bytes4"
760
+ }
761
+ ],
762
+ "stateMutability": "view",
763
+ "type": "function"
764
+ },
554
765
  {
555
766
  "inputs": [],
556
767
  "name": "linkToRegisteredNftId",
@@ -565,6 +776,19 @@
565
776
  "stateMutability": "nonpayable",
566
777
  "type": "function"
567
778
  },
779
+ {
780
+ "inputs": [
781
+ {
782
+ "internalType": "NftId",
783
+ "name": "bundleNftId",
784
+ "type": "uint96"
785
+ }
786
+ ],
787
+ "name": "lockBundle",
788
+ "outputs": [],
789
+ "stateMutability": "nonpayable",
790
+ "type": "function"
791
+ },
568
792
  {
569
793
  "inputs": [
570
794
  {
@@ -589,6 +813,19 @@
589
813
  "stateMutability": "view",
590
814
  "type": "function"
591
815
  },
816
+ {
817
+ "inputs": [
818
+ {
819
+ "internalType": "address",
820
+ "name": "newAuthority",
821
+ "type": "address"
822
+ }
823
+ ],
824
+ "name": "setAuthority",
825
+ "outputs": [],
826
+ "stateMutability": "nonpayable",
827
+ "type": "function"
828
+ },
592
829
  {
593
830
  "inputs": [
594
831
  {
@@ -678,6 +915,32 @@
678
915
  "stateMutability": "nonpayable",
679
916
  "type": "function"
680
917
  },
918
+ {
919
+ "inputs": [
920
+ {
921
+ "internalType": "NftId",
922
+ "name": "productNftId",
923
+ "type": "uint96"
924
+ }
925
+ ],
926
+ "name": "setProductNftId",
927
+ "outputs": [],
928
+ "stateMutability": "nonpayable",
929
+ "type": "function"
930
+ },
931
+ {
932
+ "inputs": [
933
+ {
934
+ "internalType": "address",
935
+ "name": "newWallet",
936
+ "type": "address"
937
+ }
938
+ ],
939
+ "name": "setWallet",
940
+ "outputs": [],
941
+ "stateMutability": "nonpayable",
942
+ "type": "function"
943
+ },
681
944
  {
682
945
  "inputs": [
683
946
  {
@@ -731,44 +994,23 @@
731
994
  "outputs": [],
732
995
  "stateMutability": "nonpayable",
733
996
  "type": "function"
734
- }
735
- ],
736
- "bytecode": "0x60806040523480156200001157600080fd5b5060405162002187380380620021878339810160408190526200003491620006fe565b8a8a8a8a608c6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff191660011790558b86600280546001600160a01b03191633179055604080516020810190915260008152620000a98888868686866200037c565b6000620000be6001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b038a1660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa1580156200010e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262000138919081019062000882565b6080810151600780546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b81526342e19e5f60e01b6004820152919250906301ffc9a790602401602060405180830381865afa158015620001a0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001c6919062000968565b620001f25760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b600760009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000246573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200026c91906200098d565b600380546001600160a01b03199081166001600160a01b039384161790915560058054309083161790556006805490911688831617905560078054909116600160a01b6001600160601b038a160217905563593e597960e11b60009081526020527fe5ff73b5268559916713b465b9aafbfc723fb1444fb210a355c8977973af6095805460ff1916600117905550506008805460ff19168e1515179055505050600989905550508551600a555050602080850151600b558351600c5583810151600d558251600e55820151600f556200036b632d744d3360e11b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b505050505050505050505062000b08565b6200038882876200044d565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166001600160681b0319909116176c0100000000000000000000000060ff8816021760ff60681b19166d01000000000000000000000000008615150217815590506001810162000407838262000a3c565b506303fb044760e21b60009081526020527fb43e4f3791bfcdefa3a0fbe2a5555f8d6490b90e01de0ff40c66f18b49b562c5805460ff1916600117905550505050505050565b600280546001600160a01b0319166001600160a01b038416179055620004738162000477565b5050565b6001546001600160a01b031615620004b25760015460405163fcdbf2d960e01b81526001600160a01b039091166004820152602401620001e9565b6001600160a01b038116620004da5760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003620005125760405163fdeac91f60e01b81526001600160a01b0382166004820152602401620001e9565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b815263350fb35160e11b60048201526301ffc9a790602401602060405180830381865afa9250505080156200058f575060408051601f3d908101601f191682019092526200058c9181019062000968565b60015b620005b95760405163fdeac91f60e01b81526001600160a01b0382166004820152602401620001e9565b80620004735760405163fdeac91f60e01b81526001600160a01b0383166004820152602401620001e9565b50565b6001600160a01b0381168114620005e457600080fd5b80516200060a81620005e7565b919050565b80516001600160601b03811681146200060a57600080fd5b805180151581146200060a57600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b038111828210171562000673576200067362000638565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620006a457620006a462000638565b604052919050565b600060408284031215620006bf57600080fd5b604080519081016001600160401b0381118282101715620006e457620006e462000638565b604052825181526020928301519281019290925250919050565b60008060008060008060008060008060006101c08c8e0312156200072157600080fd5b8b516200072e81620005e7565b9a506200073e60208d016200060f565b99506200074e60408d016200060f565b985060608c01516200076081620005e7565b97506200077060808d0162000627565b96506200078060a08d0162000627565b955060c08c01519450620007988d60e08e01620006ac565b9350620007aa8d6101208e01620006ac565b9250620007bc8d6101608e01620006ac565b91506101a08c0151620007cf81620005e7565b809150509295989b509295989b9093969950565b805160ff811681146200060a57600080fd5b600082601f8301126200080757600080fd5b81516001600160401b0381111562000823576200082362000638565b602062000839601f8301601f1916820162000679565b82815285828487010111156200084e57600080fd5b60005b838110156200086e57858101830151828201840152820162000851565b506000928101909101919091529392505050565b6000602082840312156200089557600080fd5b81516001600160401b0380821115620008ad57600080fd5b9083019060e08286031215620008c257600080fd5b620008cc6200064e565b620008d7836200060f565b8152620008e7602084016200060f565b6020820152620008fa60408401620007e3565b60408201526200090d6060840162000627565b60608201526200092060808401620005fd565b60808201526200093360a08401620005fd565b60a082015260c0830151828111156200094b57600080fd5b6200095987828601620007f5565b60c08301525095945050505050565b6000602082840312156200097b57600080fd5b620009868262000627565b9392505050565b600060208284031215620009a057600080fd5b81516200098681620005e7565b600181811c90821680620009c257607f821691505b602082108103620009e357634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000a3757600081815260208120601f850160051c8101602086101562000a125750805b601f850160051c820191505b8181101562000a335782815560010162000a1e565b5050505b505050565b81516001600160401b0381111562000a585762000a5862000638565b62000a708162000a698454620009ad565b84620009e9565b602080601f83116001811462000aa8576000841562000a8f5750858301515b600019600386901b1c1916600185901b17855562000a33565b600085815260208120601f198616915b8281101562000ad95788860151825594840194600190910190840162000ab8565b508582101562000af85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61166f8062000b186000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c8063644c45e0116100b8578063a69df4b51161007c578063a69df4b5146102b1578063c200b809146102b9578063d7f5e609146102ce578063dab12325146102e1578063de7b5d14146102f7578063f83d08ba1461030857600080fd5b8063644c45e01461026057806365effc1a14610278578063826787661461028b57806387ef9ba01461029e578063893d20e8146102a957600080fd5b80631eff4b22116100ff5780631eff4b22146101ee57806321df0da71461022357806354afef63146102345780635ab1bd531461023c578063636450f51461024d57600080fd5b806251884a1461013b57806301ffc9a71461016c5780630fec111c146101a957806313299604146101bf578063138461e0146101e4575b600080fd5b600754600160a01b90046001600160601b03165b6040516001600160601b0390911681526020015b60405180910390f35b61019961017a366004610f66565b6001600160e01b03191660009081526020819052604090205460ff1690565b6040519015158152602001610163565b6101b1610310565b604051610163929190610fdd565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610163565b6101ec610431565b005b6102157f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610163565b6006546001600160a01b03166101cc565b600954610215565b6001546001600160a01b03166101cc565b6101ec61025b36600461112f565b610653565b600154600160a01b90046001600160601b031661014f565b6101ec6102863660046111f2565b6106bb565b6101ec610299366004611270565b610731565b60085460ff16610199565b6101cc61080c565b6101ec61092a565b6102c16109d8565b60405161016391906112b6565b61014f6102dc36600461135b565b610c8b565b6101996102ef3660046113bd565b600192915050565b6007546001600160a01b03166101cc565b6101ec610d15565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c08201819052909180610354610d92565b915091508160405180610100016040528061037f6007546001600160601b03600160a01b9091041690565b6001600160601b03168152600060208083019190915260095460408084019190915280518082018252600a548152600b5481840152606084015280518082018252600c548152600d5481840152608084015280518082018252600e548152600f548184015260a084015260085460ff16151560c08401526005546001600160a01b031660e09093019290925290516104189291016112b6565b6040516020818303038152906040529350935050509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610493573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b79190611436565b156104fe576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166105275760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610570573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105949190611436565b6105bc576040516372657a5160e01b81526001600160a01b03821660048201526024016104f5565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa158015610606573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062a919061145c565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b60105460405163636450f560e01b81526001600160a01b039091169063636450f5906106859085908590600401611479565b600060405180830381600087803b15801561069f57600080fd5b505af11580156106b3573d6000803e3d6000fd5b505050505050565b6011546001600160a01b0316331461071f5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b60648201526084016104f5565b61072b84848484610f18565b50505050565b600061073b61080c565b90506001600160a01b0381161580159061075e5750336001600160a01b03821614155b1561077e5760405163700dd81160e01b81523360048201526024016104f5565b601054604051634133c3b360e11b8152855160048201526020808701516024830152855160448301528086015160648301528451608483015284015160a48201526001600160a01b039091169063826787669060c401600060405180830381600087803b1580156107ee57600080fd5b505af1158015610802573d6000803e3d6000fd5b5050505050505050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610871573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108959190611436565b1561091a57600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa1580156108f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091591906114c0565b905090565b506002546001600160a01b031690565b600061093461080c565b90506001600160a01b038116158015906109575750336001600160a01b03821614155b156109775760405163700dd81160e01b81523360048201526024016104f5565b600354604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b1580156109bd57600080fd5b505af11580156109d1573d6000803e3d6000fd5b5050505050565b610a4b60408051610100810182526000808252602080830182905282840182905283518085018552828152808201839052606084015283518085018552828152808201839052608084015283518085019094528184528301529060a0820190815260006020820181905260409091015290565b6001546040805163c4cade9d60e01b8152600160a01b9092046001600160601b03166004830152600060248301525173__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__9163c4cade9d9160448083019260209291908290030181865af4158015610aba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ade9190611436565b15610b8357506040805161010081018252600754600160a01b90046001600160601b0316815260006020808301919091526009548284015282518084018452600a548152600b5481830152606083015282518084018452600c548152600d548183015260808301528251808401909352600e548352600f549083015260a081019190915260085460ff16151560c08201526005546001600160a01b031660e082015290565b600754604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa158015610bcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf191906114c0565b9050806001600160a01b03166355e343a9610c1c6001546001600160601b03600160a01b9091041690565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240161016060405180830381865afa158015610c61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c85919061150d565b91505090565b60105460405163e3458d5360e01b815260009133916001600160a01b039091169063e3458d5390610cc89084908a908a908a908a906004016115af565b6020604051808303816000875af1158015610ce7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0b919061145c565b9695505050505050565b6000610d1f61080c565b90506001600160a01b03811615801590610d425750336001600160a01b03821614155b15610d625760405163700dd81160e01b81523360048201526024016104f5565b60035460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a7906024016109a3565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c0810191909152606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610e196001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610e6161080c565b6001600160a01b03168152602001826001018054610e7e906115ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610eaa906115ff565b8015610ef75780601f10610ecc57610100808354040283529160200191610ef7565b820191906000526020600020905b815481529060010190602001808311610eda57829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b604080516001600160601b038616815260208101839052308183015290517ffa749b7f8c958183586325608c5d122eb3a8beb56a4d6ac2c88b78193e9facb99181900360600190a150505050565b600060208284031215610f7857600080fd5b81356001600160e01b031981168114610f9057600080fd5b9392505050565b6000815180845260005b81811015610fbd57602081850181015186830182015201610fa1565b506000602082860101526020601f19601f83011685010191505092915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff6040850151166080830152606084015161102160a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e0610100840152611067610120840182610f97565b9050828103602084015261107b8185610f97565b95945050505050565b6001600160601b038116811461109957600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156110d5576110d561109c565b60405290565b604051610100810167ffffffffffffffff811182821017156110d5576110d561109c565b60006040828403121561111157600080fd5b6111196110b2565b9050813581526020820135602082015292915050565b6000806060838503121561114257600080fd5b823561114d81611084565b915061115c84602085016110ff565b90509250929050565b600082601f83011261117657600080fd5b813567ffffffffffffffff808211156111915761119161109c565b604051601f8301601f19908116603f011681019082821181831017156111b9576111b961109c565b816040528381528660208588010111156111d257600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561120857600080fd5b843561121381611084565b9350602085013567ffffffffffffffff8082111561123057600080fd5b61123c88838901611165565b9450604087013591508082111561125257600080fd5b5061125f87828801611165565b949793965093946060013593505050565b600080600060c0848603121561128557600080fd5b61128f85856110ff565b925061129e85604086016110ff565b91506112ad85608086016110ff565b90509250925092565b81516001600160601b031681526020808301516001600160a01b031690820152604080830151908201526060808301516101608301916113029084018280518252602090810151910152565b506080830151805160a0840152602081015160c08401525060a0830151805160e084015260208101516101008401525060c0830151151561012083015260e08301516001600160a01b0381166101408401525092915050565b60008060008060a0858703121561137157600080fd5b61137b86866110ff565b93506040850135925060608501359150608085013567ffffffffffffffff8111156113a557600080fd5b6113b187828801611165565b91505092959194509250565b600080604083850312156113d057600080fd5b823567ffffffffffffffff808211156113e857600080fd5b6113f486838701611165565b9350602085013591508082111561140a57600080fd5b5061141785828601611165565b9150509250929050565b8051801515811461143157600080fd5b919050565b60006020828403121561144857600080fd5b610f9082611421565b805161143181611084565b60006020828403121561146e57600080fd5b8151610f9081611084565b6001600160601b038316815260608101610f90602083018480518252602090810151910152565b6001600160a01b038116811461109957600080fd5b8051611431816114a0565b6000602082840312156114d257600080fd5b8151610f90816114a0565b6000604082840312156114ef57600080fd5b6114f76110b2565b9050815181526020820151602082015292915050565b6000610160828403121561152057600080fd5b6115286110db565b61153183611451565b815261153f602084016114b5565b60208201526040830151604082015261155b84606085016114dd565b606082015261156d8460a085016114dd565b608082015261157f8460e085016114dd565b60a08201526115916101208401611421565b60c08201526115a361014084016114b5565b60e08201529392505050565b6001600160a01b03861681526115d2602082018680518252602090810151910152565b83606082015282608082015260c060a082015260006115f460c0830184610f97565b979650505050505050565b600181811c9082168061161357607f821691505b60208210810361163357634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212201daa7fcfe1612db855823386b56e04b3d99bf1f829cf02a434dca9cef43ba21864736f6c63430008140033",
737
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101365760003560e01c8063644c45e0116100b8578063a69df4b51161007c578063a69df4b5146102b1578063c200b809146102b9578063d7f5e609146102ce578063dab12325146102e1578063de7b5d14146102f7578063f83d08ba1461030857600080fd5b8063644c45e01461026057806365effc1a14610278578063826787661461028b57806387ef9ba01461029e578063893d20e8146102a957600080fd5b80631eff4b22116100ff5780631eff4b22146101ee57806321df0da71461022357806354afef63146102345780635ab1bd531461023c578063636450f51461024d57600080fd5b806251884a1461013b57806301ffc9a71461016c5780630fec111c146101a957806313299604146101bf578063138461e0146101e4575b600080fd5b600754600160a01b90046001600160601b03165b6040516001600160601b0390911681526020015b60405180910390f35b61019961017a366004610f66565b6001600160e01b03191660009081526020819052604090205460ff1690565b6040519015158152602001610163565b6101b1610310565b604051610163929190610fdd565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610163565b6101ec610431565b005b6102157f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610163565b6006546001600160a01b03166101cc565b600954610215565b6001546001600160a01b03166101cc565b6101ec61025b36600461112f565b610653565b600154600160a01b90046001600160601b031661014f565b6101ec6102863660046111f2565b6106bb565b6101ec610299366004611270565b610731565b60085460ff16610199565b6101cc61080c565b6101ec61092a565b6102c16109d8565b60405161016391906112b6565b61014f6102dc36600461135b565b610c8b565b6101996102ef3660046113bd565b600192915050565b6007546001600160a01b03166101cc565b6101ec610d15565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c08201819052909180610354610d92565b915091508160405180610100016040528061037f6007546001600160601b03600160a01b9091041690565b6001600160601b03168152600060208083019190915260095460408084019190915280518082018252600a548152600b5481840152606084015280518082018252600c548152600d5481840152608084015280518082018252600e548152600f548184015260a084015260085460ff16151560c08401526005546001600160a01b031660e09093019290925290516104189291016112b6565b6040516020818303038152906040529350935050509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610493573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b79190611436565b156104fe576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166105275760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610570573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105949190611436565b6105bc576040516372657a5160e01b81526001600160a01b03821660048201526024016104f5565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa158015610606573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062a919061145c565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b60105460405163636450f560e01b81526001600160a01b039091169063636450f5906106859085908590600401611479565b600060405180830381600087803b15801561069f57600080fd5b505af11580156106b3573d6000803e3d6000fd5b505050505050565b6011546001600160a01b0316331461071f5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b60648201526084016104f5565b61072b84848484610f18565b50505050565b600061073b61080c565b90506001600160a01b0381161580159061075e5750336001600160a01b03821614155b1561077e5760405163700dd81160e01b81523360048201526024016104f5565b601054604051634133c3b360e11b8152855160048201526020808701516024830152855160448301528086015160648301528451608483015284015160a48201526001600160a01b039091169063826787669060c401600060405180830381600087803b1580156107ee57600080fd5b505af1158015610802573d6000803e3d6000fd5b5050505050505050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610871573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108959190611436565b1561091a57600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa1580156108f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091591906114c0565b905090565b506002546001600160a01b031690565b600061093461080c565b90506001600160a01b038116158015906109575750336001600160a01b03821614155b156109775760405163700dd81160e01b81523360048201526024016104f5565b600354604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b1580156109bd57600080fd5b505af11580156109d1573d6000803e3d6000fd5b5050505050565b610a4b60408051610100810182526000808252602080830182905282840182905283518085018552828152808201839052606084015283518085018552828152808201839052608084015283518085019094528184528301529060a0820190815260006020820181905260409091015290565b6001546040805163c4cade9d60e01b8152600160a01b9092046001600160601b03166004830152600060248301525173__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__9163c4cade9d9160448083019260209291908290030181865af4158015610aba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ade9190611436565b15610b8357506040805161010081018252600754600160a01b90046001600160601b0316815260006020808301919091526009548284015282518084018452600a548152600b5481830152606083015282518084018452600c548152600d548183015260808301528251808401909352600e548352600f549083015260a081019190915260085460ff16151560c08201526005546001600160a01b031660e082015290565b600754604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa158015610bcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf191906114c0565b9050806001600160a01b03166355e343a9610c1c6001546001600160601b03600160a01b9091041690565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240161016060405180830381865afa158015610c61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c85919061150d565b91505090565b60105460405163e3458d5360e01b815260009133916001600160a01b039091169063e3458d5390610cc89084908a908a908a908a906004016115af565b6020604051808303816000875af1158015610ce7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0b919061145c565b9695505050505050565b6000610d1f61080c565b90506001600160a01b03811615801590610d425750336001600160a01b03821614155b15610d625760405163700dd81160e01b81523360048201526024016104f5565b60035460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a7906024016109a3565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c0810191909152606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610e196001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610e6161080c565b6001600160a01b03168152602001826001018054610e7e906115ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610eaa906115ff565b8015610ef75780601f10610ecc57610100808354040283529160200191610ef7565b820191906000526020600020905b815481529060010190602001808311610eda57829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b604080516001600160601b038616815260208101839052308183015290517ffa749b7f8c958183586325608c5d122eb3a8beb56a4d6ac2c88b78193e9facb99181900360600190a150505050565b600060208284031215610f7857600080fd5b81356001600160e01b031981168114610f9057600080fd5b9392505050565b6000815180845260005b81811015610fbd57602081850181015186830182015201610fa1565b506000602082860101526020601f19601f83011685010191505092915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff6040850151166080830152606084015161102160a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e0610100840152611067610120840182610f97565b9050828103602084015261107b8185610f97565b95945050505050565b6001600160601b038116811461109957600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156110d5576110d561109c565b60405290565b604051610100810167ffffffffffffffff811182821017156110d5576110d561109c565b60006040828403121561111157600080fd5b6111196110b2565b9050813581526020820135602082015292915050565b6000806060838503121561114257600080fd5b823561114d81611084565b915061115c84602085016110ff565b90509250929050565b600082601f83011261117657600080fd5b813567ffffffffffffffff808211156111915761119161109c565b604051601f8301601f19908116603f011681019082821181831017156111b9576111b961109c565b816040528381528660208588010111156111d257600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561120857600080fd5b843561121381611084565b9350602085013567ffffffffffffffff8082111561123057600080fd5b61123c88838901611165565b9450604087013591508082111561125257600080fd5b5061125f87828801611165565b949793965093946060013593505050565b600080600060c0848603121561128557600080fd5b61128f85856110ff565b925061129e85604086016110ff565b91506112ad85608086016110ff565b90509250925092565b81516001600160601b031681526020808301516001600160a01b031690820152604080830151908201526060808301516101608301916113029084018280518252602090810151910152565b506080830151805160a0840152602081015160c08401525060a0830151805160e084015260208101516101008401525060c0830151151561012083015260e08301516001600160a01b0381166101408401525092915050565b60008060008060a0858703121561137157600080fd5b61137b86866110ff565b93506040850135925060608501359150608085013567ffffffffffffffff8111156113a557600080fd5b6113b187828801611165565b91505092959194509250565b600080604083850312156113d057600080fd5b823567ffffffffffffffff808211156113e857600080fd5b6113f486838701611165565b9350602085013591508082111561140a57600080fd5b5061141785828601611165565b9150509250929050565b8051801515811461143157600080fd5b919050565b60006020828403121561144857600080fd5b610f9082611421565b805161143181611084565b60006020828403121561146e57600080fd5b8151610f9081611084565b6001600160601b038316815260608101610f90602083018480518252602090810151910152565b6001600160a01b038116811461109957600080fd5b8051611431816114a0565b6000602082840312156114d257600080fd5b8151610f90816114a0565b6000604082840312156114ef57600080fd5b6114f76110b2565b9050815181526020820151602082015292915050565b6000610160828403121561152057600080fd5b6115286110db565b61153183611451565b815261153f602084016114b5565b60208201526040830151604082015261155b84606085016114dd565b606082015261156d8460a085016114dd565b608082015261157f8460e085016114dd565b60a08201526115916101208401611421565b60c08201526115a361014084016114b5565b60e08201529392505050565b6001600160a01b03861681526115d2602082018680518252602090810151910152565b83606082015282608082015260c060a082015260006115f460c0830184610f97565b979650505050505050565b600181811c9082168061161357607f821691505b60208210810361163357634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212201daa7fcfe1612db855823386b56e04b3d99bf1f829cf02a434dca9cef43ba21864736f6c63430008140033",
738
- "linkReferences": {
739
- "contracts/types/NftId.sol": {
740
- "NftIdLib": [
741
- {
742
- "length": 20,
743
- "start": 3953
744
- },
745
- {
746
- "length": 20,
747
- "start": 4943
748
- },
749
- {
750
- "length": 20,
751
- "start": 5524
752
- }
753
- ]
754
- }
755
- },
756
- "deployedLinkReferences": {
757
- "contracts/types/NftId.sol": {
758
- "NftIdLib": [
759
- {
760
- "length": 20,
761
- "start": 1113
762
- },
763
- {
764
- "length": 20,
765
- "start": 2103
766
- },
997
+ },
998
+ {
999
+ "inputs": [
767
1000
  {
768
- "length": 20,
769
- "start": 2684
1001
+ "internalType": "NftId",
1002
+ "name": "bundleNftId",
1003
+ "type": "uint96"
770
1004
  }
771
- ]
1005
+ ],
1006
+ "name": "unlockBundle",
1007
+ "outputs": [],
1008
+ "stateMutability": "nonpayable",
1009
+ "type": "function"
772
1010
  }
773
- }
1011
+ ],
1012
+ "bytecode": "0x",
1013
+ "deployedBytecode": "0x",
1014
+ "linkReferences": {},
1015
+ "deployedLinkReferences": {}
774
1016
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/e9844962b604f2337cc8063f448ec25f.json"
3
+ "buildInfo": "../../../build-info/ba4420804dbe9aabd43dccaca2adf92c.json"
4
4
  }