@etherisc/gif-next 0.0.2-b9e43cf-870 → 0.0.2-bad4d33-850

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  2. package/artifacts/contracts/components/{IBaseComponent.sol/IBaseComponent.json → Component.sol/Component.json} +273 -14
  3. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.json +184 -10
  5. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  6. package/artifacts/contracts/components/{BaseComponent.sol/BaseComponent.json → IComponent.sol/IComponent.json} +61 -88
  7. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +496 -0
  9. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +512 -74
  11. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +596 -5
  13. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  14. package/artifacts/contracts/components/Pool.sol/Pool.json +165 -93
  15. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  16. package/artifacts/contracts/components/Product.sol/Product.json +189 -15
  17. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  36. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  37. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  38. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +38 -62
  39. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
  40. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  41. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +179 -13
  42. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  43. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +21 -5
  44. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  45. package/artifacts/contracts/instance/Instance.sol/Instance.json +111 -74
  46. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  47. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +47 -60
  48. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  49. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +41 -82
  50. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  51. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +168 -92
  52. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  53. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +37 -24
  54. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
  55. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +8 -32
  56. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  57. package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +102 -31
  58. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  59. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  60. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  61. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  62. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  63. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  64. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  65. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  66. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  67. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  68. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  69. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
  70. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +131 -60
  71. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  72. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +31 -18
  73. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  74. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +126 -47
  75. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  76. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +31 -14
  77. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
  78. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +0 -5
  79. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  80. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +0 -5
  81. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  82. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +0 -5
  83. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  84. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +0 -5
  85. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  86. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +0 -5
  87. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
  88. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +152 -81
  89. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  90. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +44 -31
  91. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  92. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +126 -47
  93. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  94. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +31 -14
  95. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  96. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +126 -47
  97. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
  98. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +31 -14
  99. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  100. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  101. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +83 -3
  102. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  103. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +33 -28
  104. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  105. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  106. package/artifacts/contracts/registry/Registry.sol/Registry.json +96 -24
  107. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
  108. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +18 -18
  109. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  110. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +61 -56
  111. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  112. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +28 -15
  113. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
  114. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +70 -53
  115. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  116. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +23 -26
  117. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  118. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  119. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  120. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  121. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +0 -5
  122. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  123. package/artifacts/contracts/shared/IService.sol/IService.json +0 -5
  124. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  125. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  126. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +19 -6
  127. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  128. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +19 -6
  129. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  130. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +19 -11
  131. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  132. package/artifacts/contracts/shared/Service.sol/Service.json +13 -5
  133. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  134. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  135. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  136. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  137. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  138. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +19 -11
  139. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  140. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  141. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  142. package/artifacts/contracts/test/TestService.sol/TestService.json +29 -21
  143. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  144. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  145. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  146. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  147. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  148. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  149. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  150. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  151. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  152. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  153. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  154. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  155. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  156. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  157. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  158. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  159. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  160. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  161. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  162. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  163. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  164. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  165. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  166. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  167. package/contracts/components/Component.sol +216 -0
  168. package/contracts/components/Distribution.sol +40 -51
  169. package/contracts/components/IComponent.sol +43 -0
  170. package/contracts/components/IDistributionComponent.sol +5 -2
  171. package/contracts/components/IPoolComponent.sol +6 -21
  172. package/contracts/components/IProductComponent.sol +7 -3
  173. package/contracts/components/Pool.sol +44 -108
  174. package/contracts/components/Product.sol +51 -86
  175. package/contracts/instance/BundleManager.sol +7 -11
  176. package/contracts/instance/IInstance.sol +20 -10
  177. package/contracts/instance/IInstanceService.sol +2 -1
  178. package/contracts/instance/Instance.sol +28 -31
  179. package/contracts/instance/InstanceAccessManager.sol +6 -11
  180. package/contracts/instance/InstanceReader.sol +3 -25
  181. package/contracts/instance/InstanceService.sol +112 -22
  182. package/contracts/instance/ObjectManager.sol +7 -24
  183. package/contracts/instance/base/ComponentService.sol +134 -0
  184. package/contracts/instance/service/BundleService.sol +2 -3
  185. package/contracts/instance/service/DistributionService.sol +23 -37
  186. package/contracts/instance/service/PolicyService.sol +2 -3
  187. package/contracts/instance/service/PoolService.sol +20 -55
  188. package/contracts/instance/service/ProductService.sol +50 -30
  189. package/contracts/registry/IRegistry.sol +13 -6
  190. package/contracts/registry/IRegistryService.sol +16 -9
  191. package/contracts/registry/Registry.sol +100 -44
  192. package/contracts/registry/RegistryAccessManager.sol +31 -25
  193. package/contracts/registry/RegistryService.sol +27 -85
  194. package/contracts/registry/ReleaseManager.sol +72 -82
  195. package/contracts/registry/TokenRegistry.sol +5 -3
  196. package/contracts/shared/IRegisterable.sol +1 -3
  197. package/contracts/shared/NftOwnable.sol +5 -0
  198. package/contracts/shared/Registerable.sol +10 -14
  199. package/contracts/shared/Service.sol +4 -2
  200. package/contracts/types/RoleId.sol +2 -2
  201. package/package.json +1 -1
  202. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  203. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  204. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
  205. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +0 -1206
  206. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  207. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +0 -448
  208. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  209. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +0 -763
  210. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  211. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  212. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  213. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  214. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -814
  215. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  216. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +0 -466
  217. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
  218. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +0 -442
  219. package/contracts/components/BaseComponent.sol +0 -159
  220. package/contracts/components/IBaseComponent.sol +0 -34
  221. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +0 -23
  222. package/contracts/instance/IInstanceBase.sol +0 -26
  223. package/contracts/instance/InstanceBase.sol +0 -41
  224. package/contracts/instance/base/ComponentServiceBase.sol +0 -76
  225. package/contracts/instance/base/IInstanceBase.sol +0 -23
  226. package/contracts/instance/service/ComponentOwnerService.sol +0 -315
  227. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  228. package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/48cfd1681999c5c2e2d70537a45818a3.json"
4
+ }
@@ -1,8 +1,68 @@
1
1
  {
2
2
  "_format": "hh-sol-artifact-1",
3
- "contractName": "IBaseComponent",
4
- "sourceName": "contracts/components/IBaseComponent.sol",
3
+ "contractName": "Component",
4
+ "sourceName": "contracts/components/Component.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
  {
@@ -19,6 +79,38 @@
19
79
  "name": "ErrorAlreadyLinked",
20
80
  "type": "error"
21
81
  },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "NftId",
86
+ "name": "instanceNftId",
87
+ "type": "uint96"
88
+ },
89
+ {
90
+ "internalType": "address",
91
+ "name": "instance",
92
+ "type": "address"
93
+ }
94
+ ],
95
+ "name": "ErrorComponentNotInstance",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [
100
+ {
101
+ "internalType": "address",
102
+ "name": "caller",
103
+ "type": "address"
104
+ }
105
+ ],
106
+ "name": "ErrorComponentNotProductService",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "ErrorComponentProductNftAlreadySet",
112
+ "type": "error"
113
+ },
22
114
  {
23
115
  "inputs": [
24
116
  {
@@ -32,7 +124,7 @@
32
124
  "type": "uint64"
33
125
  }
34
126
  ],
35
- "name": "ErrorBaseComponentUnauthorized",
127
+ "name": "ErrorComponentUnauthorized",
36
128
  "type": "error"
37
129
  },
38
130
  {
@@ -43,7 +135,12 @@
43
135
  "type": "address"
44
136
  }
45
137
  ],
46
- "name": "ErrorBaseComponentWalletAddressIsSameAsCurrent",
138
+ "name": "ErrorComponentWalletAddressIsSameAsCurrent",
139
+ "type": "error"
140
+ },
141
+ {
142
+ "inputs": [],
143
+ "name": "ErrorComponentWalletAddressZero",
47
144
  "type": "error"
48
145
  },
49
146
  {
@@ -69,7 +166,7 @@
69
166
  "type": "uint256"
70
167
  }
71
168
  ],
72
- "name": "ErrorBaseComponentWalletAllowanceTooSmall",
169
+ "name": "ErrorComponentWalletAllowanceTooSmall",
73
170
  "type": "error"
74
171
  },
75
172
  {
@@ -105,6 +202,17 @@
105
202
  "name": "ErrorNotRegistry",
106
203
  "type": "error"
107
204
  },
205
+ {
206
+ "inputs": [
207
+ {
208
+ "internalType": "address",
209
+ "name": "registryAddress",
210
+ "type": "address"
211
+ }
212
+ ],
213
+ "name": "ErrorRegisterableNotRegistry",
214
+ "type": "error"
215
+ },
108
216
  {
109
217
  "inputs": [],
110
218
  "name": "ErrorRegistryAddressZero",
@@ -126,6 +234,58 @@
126
234
  "name": "ErrorRegistryNotInitialized",
127
235
  "type": "error"
128
236
  },
237
+ {
238
+ "inputs": [],
239
+ "name": "FailedInnerCall",
240
+ "type": "error"
241
+ },
242
+ {
243
+ "inputs": [],
244
+ "name": "InvalidInitialization",
245
+ "type": "error"
246
+ },
247
+ {
248
+ "inputs": [],
249
+ "name": "NotInitializing",
250
+ "type": "error"
251
+ },
252
+ {
253
+ "inputs": [
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
+ },
276
+ {
277
+ "anonymous": false,
278
+ "inputs": [
279
+ {
280
+ "indexed": false,
281
+ "internalType": "uint64",
282
+ "name": "version",
283
+ "type": "uint64"
284
+ }
285
+ ],
286
+ "name": "Initialized",
287
+ "type": "event"
288
+ },
129
289
  {
130
290
  "anonymous": false,
131
291
  "inputs": [
@@ -136,7 +296,7 @@
136
296
  "type": "address"
137
297
  }
138
298
  ],
139
- "name": "LogBaseComponentWalletAddressChanged",
299
+ "name": "LogComponentWalletAddressChanged",
140
300
  "type": "event"
141
301
  },
142
302
  {
@@ -161,9 +321,48 @@
161
321
  "type": "uint256"
162
322
  }
163
323
  ],
164
- "name": "LogBaseComponentWalletTokensTransferred",
324
+ "name": "LogComponentWalletTokensTransferred",
165
325
  "type": "event"
166
326
  },
327
+ {
328
+ "inputs": [],
329
+ "name": "CONTRACT_LOCATION_V1",
330
+ "outputs": [
331
+ {
332
+ "internalType": "bytes32",
333
+ "name": "",
334
+ "type": "bytes32"
335
+ }
336
+ ],
337
+ "stateMutability": "view",
338
+ "type": "function"
339
+ },
340
+ {
341
+ "inputs": [],
342
+ "name": "REGISTERABLE_LOCATION_V1",
343
+ "outputs": [
344
+ {
345
+ "internalType": "bytes32",
346
+ "name": "",
347
+ "type": "bytes32"
348
+ }
349
+ ],
350
+ "stateMutability": "view",
351
+ "type": "function"
352
+ },
353
+ {
354
+ "inputs": [],
355
+ "name": "authority",
356
+ "outputs": [
357
+ {
358
+ "internalType": "address",
359
+ "name": "",
360
+ "type": "address"
361
+ }
362
+ ],
363
+ "stateMutability": "view",
364
+ "type": "function"
365
+ },
167
366
  {
168
367
  "inputs": [],
169
368
  "name": "getInitialInfo",
@@ -207,13 +406,21 @@
207
406
  }
208
407
  ],
209
408
  "internalType": "struct IRegistry.ObjectInfo",
210
- "name": "",
409
+ "name": "info",
211
410
  "type": "tuple"
212
- },
411
+ }
412
+ ],
413
+ "stateMutability": "view",
414
+ "type": "function"
415
+ },
416
+ {
417
+ "inputs": [],
418
+ "name": "getInitialOwner",
419
+ "outputs": [
213
420
  {
214
- "internalType": "bytes",
215
- "name": "data",
216
- "type": "bytes"
421
+ "internalType": "address",
422
+ "name": "",
423
+ "type": "address"
217
424
  }
218
425
  ],
219
426
  "stateMutability": "view",
@@ -232,6 +439,19 @@
232
439
  "stateMutability": "view",
233
440
  "type": "function"
234
441
  },
442
+ {
443
+ "inputs": [],
444
+ "name": "getInstanceService",
445
+ "outputs": [
446
+ {
447
+ "internalType": "contract IInstanceService",
448
+ "name": "",
449
+ "type": "address"
450
+ }
451
+ ],
452
+ "stateMutability": "view",
453
+ "type": "function"
454
+ },
235
455
  {
236
456
  "inputs": [],
237
457
  "name": "getName",
@@ -242,7 +462,7 @@
242
462
  "type": "string"
243
463
  }
244
464
  ],
245
- "stateMutability": "pure",
465
+ "stateMutability": "view",
246
466
  "type": "function"
247
467
  },
248
468
  {
@@ -284,6 +504,19 @@
284
504
  "stateMutability": "view",
285
505
  "type": "function"
286
506
  },
507
+ {
508
+ "inputs": [],
509
+ "name": "getProductService",
510
+ "outputs": [
511
+ {
512
+ "internalType": "contract IProductService",
513
+ "name": "",
514
+ "type": "address"
515
+ }
516
+ ],
517
+ "stateMutability": "view",
518
+ "type": "function"
519
+ },
287
520
  {
288
521
  "inputs": [],
289
522
  "name": "getRegistry",
@@ -323,6 +556,19 @@
323
556
  "stateMutability": "view",
324
557
  "type": "function"
325
558
  },
559
+ {
560
+ "inputs": [],
561
+ "name": "isConsumingScheduledOp",
562
+ "outputs": [
563
+ {
564
+ "internalType": "bytes4",
565
+ "name": "",
566
+ "type": "bytes4"
567
+ }
568
+ ],
569
+ "stateMutability": "view",
570
+ "type": "function"
571
+ },
326
572
  {
327
573
  "inputs": [],
328
574
  "name": "linkToRegisteredNftId",
@@ -337,6 +583,19 @@
337
583
  "stateMutability": "nonpayable",
338
584
  "type": "function"
339
585
  },
586
+ {
587
+ "inputs": [
588
+ {
589
+ "internalType": "address",
590
+ "name": "newAuthority",
591
+ "type": "address"
592
+ }
593
+ ],
594
+ "name": "setAuthority",
595
+ "outputs": [],
596
+ "stateMutability": "nonpayable",
597
+ "type": "function"
598
+ },
340
599
  {
341
600
  "inputs": [
342
601
  {
@@ -354,7 +613,7 @@
354
613
  "inputs": [
355
614
  {
356
615
  "internalType": "address",
357
- "name": "walletAddress",
616
+ "name": "newWallet",
358
617
  "type": "address"
359
618
  }
360
619
  ],
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/e5530b5c57be84d76caaa584abf46dd1.json"
3
+ "buildInfo": "../../../build-info/48cfd1681999c5c2e2d70537a45818a3.json"
4
4
  }
@@ -3,6 +3,44 @@
3
3
  "contractName": "Distribution",
4
4
  "sourceName": "contracts/components/Distribution.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
+ },
6
44
  {
7
45
  "inputs": [
8
46
  {
@@ -41,6 +79,38 @@
41
79
  "name": "ErrorAlreadyLinked",
42
80
  "type": "error"
43
81
  },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "NftId",
86
+ "name": "instanceNftId",
87
+ "type": "uint96"
88
+ },
89
+ {
90
+ "internalType": "address",
91
+ "name": "instance",
92
+ "type": "address"
93
+ }
94
+ ],
95
+ "name": "ErrorComponentNotInstance",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [
100
+ {
101
+ "internalType": "address",
102
+ "name": "caller",
103
+ "type": "address"
104
+ }
105
+ ],
106
+ "name": "ErrorComponentNotProductService",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "ErrorComponentProductNftAlreadySet",
112
+ "type": "error"
113
+ },
44
114
  {
45
115
  "inputs": [
46
116
  {
@@ -54,7 +124,7 @@
54
124
  "type": "uint64"
55
125
  }
56
126
  ],
57
- "name": "ErrorBaseComponentUnauthorized",
127
+ "name": "ErrorComponentUnauthorized",
58
128
  "type": "error"
59
129
  },
60
130
  {
@@ -65,7 +135,12 @@
65
135
  "type": "address"
66
136
  }
67
137
  ],
68
- "name": "ErrorBaseComponentWalletAddressIsSameAsCurrent",
138
+ "name": "ErrorComponentWalletAddressIsSameAsCurrent",
139
+ "type": "error"
140
+ },
141
+ {
142
+ "inputs": [],
143
+ "name": "ErrorComponentWalletAddressZero",
69
144
  "type": "error"
70
145
  },
71
146
  {
@@ -91,7 +166,7 @@
91
166
  "type": "uint256"
92
167
  }
93
168
  ],
94
- "name": "ErrorBaseComponentWalletAllowanceTooSmall",
169
+ "name": "ErrorComponentWalletAllowanceTooSmall",
95
170
  "type": "error"
96
171
  },
97
172
  {
@@ -185,6 +260,19 @@
185
260
  "name": "SafeERC20FailedOperation",
186
261
  "type": "error"
187
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
+ },
188
276
  {
189
277
  "anonymous": false,
190
278
  "inputs": [
@@ -208,7 +296,7 @@
208
296
  "type": "address"
209
297
  }
210
298
  ],
211
- "name": "LogBaseComponentWalletAddressChanged",
299
+ "name": "LogComponentWalletAddressChanged",
212
300
  "type": "event"
213
301
  },
214
302
  {
@@ -233,9 +321,22 @@
233
321
  "type": "uint256"
234
322
  }
235
323
  ],
236
- "name": "LogBaseComponentWalletTokensTransferred",
324
+ "name": "LogComponentWalletTokensTransferred",
237
325
  "type": "event"
238
326
  },
327
+ {
328
+ "inputs": [],
329
+ "name": "CONTRACT_LOCATION_V1",
330
+ "outputs": [
331
+ {
332
+ "internalType": "bytes32",
333
+ "name": "",
334
+ "type": "bytes32"
335
+ }
336
+ ],
337
+ "stateMutability": "view",
338
+ "type": "function"
339
+ },
239
340
  {
240
341
  "inputs": [],
241
342
  "name": "REGISTERABLE_LOCATION_V1",
@@ -249,6 +350,19 @@
249
350
  "stateMutability": "view",
250
351
  "type": "function"
251
352
  },
353
+ {
354
+ "inputs": [],
355
+ "name": "authority",
356
+ "outputs": [
357
+ {
358
+ "internalType": "address",
359
+ "name": "",
360
+ "type": "address"
361
+ }
362
+ ],
363
+ "stateMutability": "view",
364
+ "type": "function"
365
+ },
252
366
  {
253
367
  "inputs": [
254
368
  {
@@ -340,13 +454,21 @@
340
454
  }
341
455
  ],
342
456
  "internalType": "struct IRegistry.ObjectInfo",
343
- "name": "",
457
+ "name": "info",
344
458
  "type": "tuple"
345
- },
459
+ }
460
+ ],
461
+ "stateMutability": "view",
462
+ "type": "function"
463
+ },
464
+ {
465
+ "inputs": [],
466
+ "name": "getInitialOwner",
467
+ "outputs": [
346
468
  {
347
- "internalType": "bytes",
469
+ "internalType": "address",
348
470
  "name": "",
349
- "type": "bytes"
471
+ "type": "address"
350
472
  }
351
473
  ],
352
474
  "stateMutability": "view",
@@ -365,6 +487,19 @@
365
487
  "stateMutability": "view",
366
488
  "type": "function"
367
489
  },
490
+ {
491
+ "inputs": [],
492
+ "name": "getInstanceService",
493
+ "outputs": [
494
+ {
495
+ "internalType": "contract IInstanceService",
496
+ "name": "",
497
+ "type": "address"
498
+ }
499
+ ],
500
+ "stateMutability": "view",
501
+ "type": "function"
502
+ },
368
503
  {
369
504
  "inputs": [],
370
505
  "name": "getName",
@@ -375,7 +510,7 @@
375
510
  "type": "string"
376
511
  }
377
512
  ],
378
- "stateMutability": "pure",
513
+ "stateMutability": "view",
379
514
  "type": "function"
380
515
  },
381
516
  {
@@ -417,6 +552,19 @@
417
552
  "stateMutability": "view",
418
553
  "type": "function"
419
554
  },
555
+ {
556
+ "inputs": [],
557
+ "name": "getProductService",
558
+ "outputs": [
559
+ {
560
+ "internalType": "contract IProductService",
561
+ "name": "",
562
+ "type": "address"
563
+ }
564
+ ],
565
+ "stateMutability": "view",
566
+ "type": "function"
567
+ },
420
568
  {
421
569
  "inputs": [],
422
570
  "name": "getRegistry",
@@ -508,6 +656,19 @@
508
656
  "stateMutability": "view",
509
657
  "type": "function"
510
658
  },
659
+ {
660
+ "inputs": [],
661
+ "name": "isConsumingScheduledOp",
662
+ "outputs": [
663
+ {
664
+ "internalType": "bytes4",
665
+ "name": "",
666
+ "type": "bytes4"
667
+ }
668
+ ],
669
+ "stateMutability": "view",
670
+ "type": "function"
671
+ },
511
672
  {
512
673
  "inputs": [],
513
674
  "name": "isVerifying",
@@ -590,6 +751,19 @@
590
751
  "stateMutability": "view",
591
752
  "type": "function"
592
753
  },
754
+ {
755
+ "inputs": [
756
+ {
757
+ "internalType": "address",
758
+ "name": "newAuthority",
759
+ "type": "address"
760
+ }
761
+ ],
762
+ "name": "setAuthority",
763
+ "outputs": [],
764
+ "stateMutability": "nonpayable",
765
+ "type": "function"
766
+ },
593
767
  {
594
768
  "inputs": [
595
769
  {
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/48cfd1681999c5c2e2d70537a45818a3.json"
4
+ }