@etherisc/gif-next 0.0.2-de0a1d3-009 → 0.0.2-e1e92ab-754

Sign up to get free protection for your applications and to get access to all the features.
Files changed (263) hide show
  1. package/README.md +51 -25
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +166 -39
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +212 -60
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +119 -39
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +0 -163
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +6 -185
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +0 -163
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +257 -119
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +220 -50
  18. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  35. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  36. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +247 -355
  37. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +1 -1
  38. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  39. package/artifacts/contracts/instance/Instance.sol/Instance.json +369 -507
  40. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  41. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +144 -50
  42. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  43. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +1 -1
  44. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  46. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +1 -1
  47. package/artifacts/contracts/instance/base/IService.sol/IService.json +120 -40
  48. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +1 -1
  49. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +147 -66
  50. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  51. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  52. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +1 -1
  53. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +1 -1
  54. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +140 -59
  55. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +1 -1
  56. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +1 -1
  57. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +1 -1
  58. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
  59. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +1 -1
  60. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +1 -1
  61. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +1 -1
  62. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +2 -2
  63. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +1 -1
  64. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +1 -1
  65. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
  66. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
  67. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -13
  68. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
  69. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -13
  70. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +1 -1
  71. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
  72. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +29 -9
  73. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
  74. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +28 -8
  75. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +1 -1
  76. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +1 -1
  77. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +1 -1
  78. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +2 -2
  79. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +1 -1
  80. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +1 -1
  81. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +138 -11
  82. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  83. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +2 -2
  84. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +1 -1
  85. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +138 -11
  86. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  87. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +288 -79
  88. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  89. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +188 -65
  90. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  91. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +122 -61
  92. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  93. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +120 -40
  94. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  95. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +120 -40
  96. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  97. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +120 -40
  98. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  99. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +190 -67
  100. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  101. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +220 -97
  102. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  103. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +141 -12
  104. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
  105. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +5 -0
  106. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  107. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +190 -51
  108. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  109. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +872 -0
  110. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  111. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  112. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  113. package/artifacts/contracts/registry/Registry.sol/Registry.json +380 -139
  114. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  115. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1245 -0
  116. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  117. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +490 -0
  118. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  119. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  120. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  121. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  122. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  123. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  124. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  125. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +117 -37
  126. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  127. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -2
  128. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  129. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
  130. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  131. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
  132. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  133. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +190 -37
  134. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  135. package/artifacts/contracts/shared/{Proxy.sol/ProxyWithProxyAdminGetter.json → UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json} +4 -4
  136. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  137. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +4 -27
  138. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +1 -1
  139. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +212 -60
  140. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  141. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  142. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +1 -1
  143. package/artifacts/contracts/test/TestPool.sol/TestPool.json +257 -119
  144. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
  145. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +225 -56
  146. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  147. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +204 -36
  148. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  149. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  150. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  151. package/artifacts/contracts/test/TestService.sol/TestService.json +187 -69
  152. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  153. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  154. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  156. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  157. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +15 -38
  158. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  159. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  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/Fee.sol/FeeLib.dbg.json +1 -1
  164. package/artifacts/contracts/types/Fee.sol/FeeLib.json +4 -4
  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/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  169. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +1 -1
  170. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  171. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  172. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  173. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  175. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  176. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  177. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  178. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  179. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  180. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  181. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
  183. package/contracts/components/BaseComponent.sol +11 -26
  184. package/contracts/components/Distribution.sol +29 -6
  185. package/contracts/components/IBaseComponent.sol +1 -1
  186. package/contracts/components/IDistributionComponent.sol +1 -2
  187. package/contracts/components/IPoolComponent.sol +3 -10
  188. package/contracts/components/IProductComponent.sol +2 -3
  189. package/contracts/components/Pool.sol +84 -73
  190. package/contracts/components/Product.sol +85 -13
  191. package/contracts/instance/IInstance.sol +6 -7
  192. package/contracts/instance/Instance.sol +18 -9
  193. package/contracts/instance/base/ComponentServiceBase.sol +13 -6
  194. package/contracts/instance/base/IInstanceBase.sol +3 -2
  195. package/contracts/instance/base/InstanceBase.sol +6 -8
  196. package/contracts/instance/base/ServiceBase.sol +20 -13
  197. package/contracts/instance/module/component/ComponentModule.sol +4 -3
  198. package/contracts/instance/module/component/IComponent.sol +1 -1
  199. package/contracts/instance/module/policy/IPolicy.sol +1 -1
  200. package/contracts/instance/module/pool/IPoolModule.sol +4 -3
  201. package/contracts/instance/module/pool/PoolModule.sol +12 -7
  202. package/contracts/instance/module/treasury/ITreasury.sol +6 -4
  203. package/contracts/instance/module/treasury/TokenHandler.sol +1 -1
  204. package/contracts/instance/module/treasury/TreasuryModule.sol +23 -30
  205. package/contracts/instance/service/ComponentOwnerService.sol +224 -66
  206. package/contracts/instance/service/DistributionService.sol +6 -11
  207. package/contracts/instance/service/IComponentOwnerService.sol +0 -2
  208. package/contracts/instance/service/PoolService.sol +19 -19
  209. package/contracts/instance/service/ProductService.sol +27 -26
  210. package/contracts/registry/ChainNft.sol +42 -14
  211. package/contracts/registry/IChainNft.sol +2 -1
  212. package/contracts/registry/IRegistry.sol +27 -27
  213. package/contracts/registry/IRegistryService.sol +35 -0
  214. package/contracts/registry/ITransferInterceptor.sol +6 -0
  215. package/contracts/registry/Registry.sol +312 -267
  216. package/contracts/registry/RegistryService.sol +441 -0
  217. package/contracts/registry/RegistryServiceManager.sol +63 -0
  218. package/contracts/shared/ContractDeployerLib.sol +72 -0
  219. package/contracts/shared/INftOwnable.sol +22 -0
  220. package/contracts/shared/IRegisterable.sol +8 -15
  221. package/contracts/shared/IVersionable.sol +40 -9
  222. package/contracts/shared/NftOwnable.sol +136 -0
  223. package/contracts/shared/ProxyManager.sol +94 -0
  224. package/contracts/shared/Registerable.sol +62 -59
  225. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  226. package/contracts/shared/Versionable.sol +109 -61
  227. package/contracts/test/TestDistribution.sol +3 -2
  228. package/contracts/test/TestFee.sol +2 -2
  229. package/contracts/test/TestPool.sol +4 -2
  230. package/contracts/test/TestProduct.sol +4 -2
  231. package/contracts/test/TestRegisterable.sol +5 -6
  232. package/contracts/test/TestService.sol +5 -11
  233. package/contracts/types/Fee.sol +3 -3
  234. package/contracts/types/RoleId.sol +7 -0
  235. package/contracts/types/UFixed.sol +128 -12
  236. package/contracts/types/Version.sol +1 -0
  237. package/package.json +4 -3
  238. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  239. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  240. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  241. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.json +0 -10
  242. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  243. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  244. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  245. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  246. package/artifacts/contracts/registry/RegistryUpgradeable.sol/RegistryUpgradeable.dbg.json +0 -4
  247. package/artifacts/contracts/registry/RegistryUpgradeable.sol/RegistryUpgradeable.json +0 -724
  248. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  249. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  250. package/artifacts/contracts/shared/Proxy.sol/ProxyDeployer.dbg.json +0 -4
  251. package/artifacts/contracts/shared/Proxy.sol/ProxyDeployer.json +0 -248
  252. package/artifacts/contracts/shared/Proxy.sol/ProxyWithProxyAdminGetter.dbg.json +0 -4
  253. package/artifacts/contracts/shared/VersionableUpgradeable.sol/VersionableUpgradeable.dbg.json +0 -4
  254. package/artifacts/contracts/shared/VersionableUpgradeable.sol/VersionableUpgradeable.json +0 -228
  255. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  256. package/contracts/experiment/statemachine/README.md +0 -112
  257. package/contracts/instance/module/access/Access.sol +0 -149
  258. package/contracts/instance/module/access/IAccess.sol +0 -53
  259. package/contracts/registry/IRegistryLinked.sol +0 -8
  260. package/contracts/registry/RegistryUpgradeable.sol +0 -473
  261. package/contracts/shared/IOwnable.sol +0 -6
  262. package/contracts/shared/Proxy.sol +0 -94
  263. package/contracts/shared/VersionableUpgradeable.sol +0 -133
@@ -4,67 +4,74 @@
4
4
  "sourceName": "contracts/instance/IInstance.sol",
5
5
  "abi": [
6
6
  {
7
- "anonymous": false,
8
7
  "inputs": [
9
8
  {
10
- "indexed": false,
11
- "internalType": "RoleId",
12
- "name": "role",
13
- "type": "bytes8"
9
+ "internalType": "address",
10
+ "name": "registry",
11
+ "type": "address"
14
12
  },
15
13
  {
16
- "indexed": false,
17
- "internalType": "string",
18
- "name": "roleName",
19
- "type": "string"
14
+ "internalType": "NftId",
15
+ "name": "nftId",
16
+ "type": "uint96"
20
17
  }
21
18
  ],
22
- "name": "LogAccessRoleCreated",
23
- "type": "event"
19
+ "name": "ErrorAlreadyLinked",
20
+ "type": "error"
24
21
  },
25
22
  {
26
- "anonymous": false,
27
23
  "inputs": [
28
24
  {
29
- "indexed": false,
30
- "internalType": "RoleId",
31
- "name": "role",
32
- "type": "bytes8"
33
- },
34
- {
35
- "indexed": false,
36
25
  "internalType": "address",
37
- "name": "member",
26
+ "name": "contractAddress",
38
27
  "type": "address"
39
- },
28
+ }
29
+ ],
30
+ "name": "ErrorContractNotRegistered",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
40
35
  {
41
- "indexed": false,
42
- "internalType": "bool",
43
- "name": "isMember",
44
- "type": "bool"
36
+ "internalType": "address",
37
+ "name": "account",
38
+ "type": "address"
45
39
  }
46
40
  ],
47
- "name": "LogAccessRoleGranted",
48
- "type": "event"
41
+ "name": "ErrorNotOwner",
42
+ "type": "error"
49
43
  },
50
44
  {
51
- "anonymous": false,
52
45
  "inputs": [
53
46
  {
54
- "indexed": false,
55
- "internalType": "RoleId",
56
- "name": "role",
57
- "type": "bytes8"
58
- },
47
+ "internalType": "address",
48
+ "name": "registryAddress",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "ErrorNotRegistry",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [],
57
+ "name": "ErrorRegistryAddressZero",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [
59
62
  {
60
- "indexed": false,
61
- "internalType": "bool",
62
- "name": "active",
63
- "type": "bool"
63
+ "internalType": "address",
64
+ "name": "registry",
65
+ "type": "address"
64
66
  }
65
67
  ],
66
- "name": "LogAccessRoleStateSet",
67
- "type": "event"
68
+ "name": "ErrorRegistryAlreadyInitialized",
69
+ "type": "error"
70
+ },
71
+ {
72
+ "inputs": [],
73
+ "name": "ErrorRegistryNotInitialized",
74
+ "type": "error"
68
75
  },
69
76
  {
70
77
  "anonymous": false,
@@ -88,7 +95,7 @@
88
95
  "type": "address"
89
96
  }
90
97
  ],
91
- "name": "LogVersionableActivated",
98
+ "name": "LogVersionableInitialized",
92
99
  "type": "event"
93
100
  },
94
101
  {
@@ -299,25 +306,6 @@
299
306
  "stateMutability": "nonpayable",
300
307
  "type": "function"
301
308
  },
302
- {
303
- "inputs": [
304
- {
305
- "internalType": "string",
306
- "name": "roleName",
307
- "type": "string"
308
- }
309
- ],
310
- "name": "createRole",
311
- "outputs": [
312
- {
313
- "internalType": "RoleId",
314
- "name": "role",
315
- "type": "bytes8"
316
- }
317
- ],
318
- "stateMutability": "nonpayable",
319
- "type": "function"
320
- },
321
309
  {
322
310
  "inputs": [
323
311
  {
@@ -517,19 +505,6 @@
517
505
  "stateMutability": "view",
518
506
  "type": "function"
519
507
  },
520
- {
521
- "inputs": [],
522
- "name": "getData",
523
- "outputs": [
524
- {
525
- "internalType": "bytes",
526
- "name": "data",
527
- "type": "bytes"
528
- }
529
- ],
530
- "stateMutability": "view",
531
- "type": "function"
532
- },
533
508
  {
534
509
  "inputs": [],
535
510
  "name": "getDistributionService",
@@ -579,6 +554,61 @@
579
554
  "stateMutability": "pure",
580
555
  "type": "function"
581
556
  },
557
+ {
558
+ "inputs": [],
559
+ "name": "getInitialInfo",
560
+ "outputs": [
561
+ {
562
+ "components": [
563
+ {
564
+ "internalType": "NftId",
565
+ "name": "nftId",
566
+ "type": "uint96"
567
+ },
568
+ {
569
+ "internalType": "NftId",
570
+ "name": "parentNftId",
571
+ "type": "uint96"
572
+ },
573
+ {
574
+ "internalType": "ObjectType",
575
+ "name": "objectType",
576
+ "type": "uint8"
577
+ },
578
+ {
579
+ "internalType": "bool",
580
+ "name": "isInterceptor",
581
+ "type": "bool"
582
+ },
583
+ {
584
+ "internalType": "address",
585
+ "name": "objectAddress",
586
+ "type": "address"
587
+ },
588
+ {
589
+ "internalType": "address",
590
+ "name": "initialOwner",
591
+ "type": "address"
592
+ },
593
+ {
594
+ "internalType": "bytes",
595
+ "name": "data",
596
+ "type": "bytes"
597
+ }
598
+ ],
599
+ "internalType": "struct IRegistry.ObjectInfo",
600
+ "name": "",
601
+ "type": "tuple"
602
+ },
603
+ {
604
+ "internalType": "bytes",
605
+ "name": "data",
606
+ "type": "bytes"
607
+ }
608
+ ],
609
+ "stateMutability": "view",
610
+ "type": "function"
611
+ },
582
612
  {
583
613
  "inputs": [],
584
614
  "name": "getInitializedVersion",
@@ -611,7 +641,7 @@
611
641
  "outputs": [
612
642
  {
613
643
  "internalType": "NftId",
614
- "name": "nftId",
644
+ "name": "",
615
645
  "type": "uint96"
616
646
  }
617
647
  ],
@@ -631,19 +661,6 @@
631
661
  "stateMutability": "view",
632
662
  "type": "function"
633
663
  },
634
- {
635
- "inputs": [],
636
- "name": "getParentNftId",
637
- "outputs": [
638
- {
639
- "internalType": "NftId",
640
- "name": "nftId",
641
- "type": "uint96"
642
- }
643
- ],
644
- "stateMutability": "view",
645
- "type": "function"
646
- },
647
664
  {
648
665
  "inputs": [
649
666
  {
@@ -855,136 +872,6 @@
855
872
  "stateMutability": "view",
856
873
  "type": "function"
857
874
  },
858
- {
859
- "inputs": [
860
- {
861
- "internalType": "uint256",
862
- "name": "idx",
863
- "type": "uint256"
864
- }
865
- ],
866
- "name": "getRole",
867
- "outputs": [
868
- {
869
- "internalType": "RoleId",
870
- "name": "role",
871
- "type": "bytes8"
872
- }
873
- ],
874
- "stateMutability": "view",
875
- "type": "function"
876
- },
877
- {
878
- "inputs": [],
879
- "name": "getRoleCount",
880
- "outputs": [
881
- {
882
- "internalType": "uint256",
883
- "name": "roles",
884
- "type": "uint256"
885
- }
886
- ],
887
- "stateMutability": "view",
888
- "type": "function"
889
- },
890
- {
891
- "inputs": [
892
- {
893
- "internalType": "string",
894
- "name": "roleName",
895
- "type": "string"
896
- }
897
- ],
898
- "name": "getRoleId",
899
- "outputs": [
900
- {
901
- "internalType": "RoleId",
902
- "name": "role",
903
- "type": "bytes8"
904
- }
905
- ],
906
- "stateMutability": "pure",
907
- "type": "function"
908
- },
909
- {
910
- "inputs": [
911
- {
912
- "internalType": "RoleId",
913
- "name": "role",
914
- "type": "bytes8"
915
- }
916
- ],
917
- "name": "getRoleInfo",
918
- "outputs": [
919
- {
920
- "components": [
921
- {
922
- "internalType": "RoleId",
923
- "name": "id",
924
- "type": "bytes8"
925
- },
926
- {
927
- "internalType": "string",
928
- "name": "name",
929
- "type": "string"
930
- },
931
- {
932
- "internalType": "bool",
933
- "name": "isActive",
934
- "type": "bool"
935
- }
936
- ],
937
- "internalType": "struct IAccess.RoleInfo",
938
- "name": "info",
939
- "type": "tuple"
940
- }
941
- ],
942
- "stateMutability": "view",
943
- "type": "function"
944
- },
945
- {
946
- "inputs": [
947
- {
948
- "internalType": "RoleId",
949
- "name": "role",
950
- "type": "bytes8"
951
- },
952
- {
953
- "internalType": "uint256",
954
- "name": "idx",
955
- "type": "uint256"
956
- }
957
- ],
958
- "name": "getRoleMember",
959
- "outputs": [
960
- {
961
- "internalType": "address",
962
- "name": "roleMember",
963
- "type": "address"
964
- }
965
- ],
966
- "stateMutability": "view",
967
- "type": "function"
968
- },
969
- {
970
- "inputs": [
971
- {
972
- "internalType": "RoleId",
973
- "name": "role",
974
- "type": "bytes8"
975
- }
976
- ],
977
- "name": "getRoleMemberCount",
978
- "outputs": [
979
- {
980
- "internalType": "uint256",
981
- "name": "roleMembers",
982
- "type": "uint256"
983
- }
984
- ],
985
- "stateMutability": "view",
986
- "type": "function"
987
- },
988
875
  {
989
876
  "inputs": [
990
877
  {
@@ -1161,19 +1048,6 @@
1161
1048
  "stateMutability": "view",
1162
1049
  "type": "function"
1163
1050
  },
1164
- {
1165
- "inputs": [],
1166
- "name": "getType",
1167
- "outputs": [
1168
- {
1169
- "internalType": "ObjectType",
1170
- "name": "objectType",
1171
- "type": "uint8"
1172
- }
1173
- ],
1174
- "stateMutability": "pure",
1175
- "type": "function"
1176
- },
1177
1051
  {
1178
1052
  "inputs": [
1179
1053
  {
@@ -1333,48 +1207,6 @@
1333
1207
  "stateMutability": "view",
1334
1208
  "type": "function"
1335
1209
  },
1336
- {
1337
- "inputs": [
1338
- {
1339
- "internalType": "RoleId",
1340
- "name": "role",
1341
- "type": "bytes8"
1342
- },
1343
- {
1344
- "internalType": "address",
1345
- "name": "member",
1346
- "type": "address"
1347
- }
1348
- ],
1349
- "name": "grantRole",
1350
- "outputs": [],
1351
- "stateMutability": "nonpayable",
1352
- "type": "function"
1353
- },
1354
- {
1355
- "inputs": [
1356
- {
1357
- "internalType": "RoleId",
1358
- "name": "role",
1359
- "type": "bytes8"
1360
- },
1361
- {
1362
- "internalType": "address",
1363
- "name": "member",
1364
- "type": "address"
1365
- }
1366
- ],
1367
- "name": "hasRole",
1368
- "outputs": [
1369
- {
1370
- "internalType": "bool",
1371
- "name": "",
1372
- "type": "bool"
1373
- }
1374
- ],
1375
- "stateMutability": "view",
1376
- "type": "function"
1377
- },
1378
1210
  {
1379
1211
  "inputs": [
1380
1212
  {
@@ -1425,7 +1257,7 @@
1425
1257
  "type": "uint24"
1426
1258
  }
1427
1259
  ],
1428
- "name": "isActivated",
1260
+ "name": "isInitialized",
1429
1261
  "outputs": [
1430
1262
  {
1431
1263
  "internalType": "bool",
@@ -1438,14 +1270,8 @@
1438
1270
  },
1439
1271
  {
1440
1272
  "inputs": [],
1441
- "name": "register",
1442
- "outputs": [
1443
- {
1444
- "internalType": "NftId",
1445
- "name": "nftId",
1446
- "type": "uint96"
1447
- }
1448
- ],
1273
+ "name": "linkToRegisteredNftId",
1274
+ "outputs": [],
1449
1275
  "stateMutability": "nonpayable",
1450
1276
  "type": "function"
1451
1277
  },
@@ -1476,18 +1302,25 @@
1476
1302
  "inputs": [
1477
1303
  {
1478
1304
  "internalType": "NftId",
1479
- "name": "poolNftId",
1305
+ "name": "nftId",
1480
1306
  "type": "uint96"
1481
1307
  },
1482
1308
  {
1483
- "internalType": "bool",
1484
- "name": "isVerifying",
1485
- "type": "bool"
1486
- },
1487
- {
1488
- "internalType": "UFixed",
1489
- "name": "collateralizationLevel",
1490
- "type": "uint256"
1309
+ "components": [
1310
+ {
1311
+ "internalType": "bool",
1312
+ "name": "isVerifying",
1313
+ "type": "bool"
1314
+ },
1315
+ {
1316
+ "internalType": "UFixed",
1317
+ "name": "collateralizationLevel",
1318
+ "type": "uint256"
1319
+ }
1320
+ ],
1321
+ "internalType": "struct IPool.PoolInfo",
1322
+ "name": "info",
1323
+ "type": "tuple"
1491
1324
  }
1492
1325
  ],
1493
1326
  "name": "registerPool",
@@ -1498,19 +1331,133 @@
1498
1331
  {
1499
1332
  "inputs": [
1500
1333
  {
1501
- "internalType": "contract IProductComponent",
1502
- "name": "product",
1503
- "type": "address"
1504
- },
1505
- {
1506
- "internalType": "contract IPoolComponent",
1507
- "name": "pool",
1508
- "type": "address"
1334
+ "internalType": "NftId",
1335
+ "name": "productNftId",
1336
+ "type": "uint96"
1509
1337
  },
1510
1338
  {
1511
- "internalType": "contract IDistributionComponent",
1512
- "name": "distribution",
1513
- "type": "address"
1339
+ "components": [
1340
+ {
1341
+ "internalType": "NftId",
1342
+ "name": "poolNftId",
1343
+ "type": "uint96"
1344
+ },
1345
+ {
1346
+ "internalType": "NftId",
1347
+ "name": "distributionNftId",
1348
+ "type": "uint96"
1349
+ },
1350
+ {
1351
+ "internalType": "contract IERC20Metadata",
1352
+ "name": "token",
1353
+ "type": "address"
1354
+ },
1355
+ {
1356
+ "components": [
1357
+ {
1358
+ "internalType": "UFixed",
1359
+ "name": "fractionalFee",
1360
+ "type": "uint256"
1361
+ },
1362
+ {
1363
+ "internalType": "uint256",
1364
+ "name": "fixedFee",
1365
+ "type": "uint256"
1366
+ }
1367
+ ],
1368
+ "internalType": "struct Fee",
1369
+ "name": "productFee",
1370
+ "type": "tuple"
1371
+ },
1372
+ {
1373
+ "components": [
1374
+ {
1375
+ "internalType": "UFixed",
1376
+ "name": "fractionalFee",
1377
+ "type": "uint256"
1378
+ },
1379
+ {
1380
+ "internalType": "uint256",
1381
+ "name": "fixedFee",
1382
+ "type": "uint256"
1383
+ }
1384
+ ],
1385
+ "internalType": "struct Fee",
1386
+ "name": "processingFee",
1387
+ "type": "tuple"
1388
+ },
1389
+ {
1390
+ "components": [
1391
+ {
1392
+ "internalType": "UFixed",
1393
+ "name": "fractionalFee",
1394
+ "type": "uint256"
1395
+ },
1396
+ {
1397
+ "internalType": "uint256",
1398
+ "name": "fixedFee",
1399
+ "type": "uint256"
1400
+ }
1401
+ ],
1402
+ "internalType": "struct Fee",
1403
+ "name": "poolFee",
1404
+ "type": "tuple"
1405
+ },
1406
+ {
1407
+ "components": [
1408
+ {
1409
+ "internalType": "UFixed",
1410
+ "name": "fractionalFee",
1411
+ "type": "uint256"
1412
+ },
1413
+ {
1414
+ "internalType": "uint256",
1415
+ "name": "fixedFee",
1416
+ "type": "uint256"
1417
+ }
1418
+ ],
1419
+ "internalType": "struct Fee",
1420
+ "name": "stakingFee",
1421
+ "type": "tuple"
1422
+ },
1423
+ {
1424
+ "components": [
1425
+ {
1426
+ "internalType": "UFixed",
1427
+ "name": "fractionalFee",
1428
+ "type": "uint256"
1429
+ },
1430
+ {
1431
+ "internalType": "uint256",
1432
+ "name": "fixedFee",
1433
+ "type": "uint256"
1434
+ }
1435
+ ],
1436
+ "internalType": "struct Fee",
1437
+ "name": "performanceFee",
1438
+ "type": "tuple"
1439
+ },
1440
+ {
1441
+ "components": [
1442
+ {
1443
+ "internalType": "UFixed",
1444
+ "name": "fractionalFee",
1445
+ "type": "uint256"
1446
+ },
1447
+ {
1448
+ "internalType": "uint256",
1449
+ "name": "fixedFee",
1450
+ "type": "uint256"
1451
+ }
1452
+ ],
1453
+ "internalType": "struct Fee",
1454
+ "name": "distributionFee",
1455
+ "type": "tuple"
1456
+ }
1457
+ ],
1458
+ "internalType": "struct ITreasury.TreasuryInfo",
1459
+ "name": "info",
1460
+ "type": "tuple"
1514
1461
  }
1515
1462
  ],
1516
1463
  "name": "registerProductSetup",
@@ -1542,43 +1489,6 @@
1542
1489
  "stateMutability": "nonpayable",
1543
1490
  "type": "function"
1544
1491
  },
1545
- {
1546
- "inputs": [
1547
- {
1548
- "internalType": "RoleId",
1549
- "name": "role",
1550
- "type": "bytes8"
1551
- },
1552
- {
1553
- "internalType": "address",
1554
- "name": "member",
1555
- "type": "address"
1556
- }
1557
- ],
1558
- "name": "revokeRole",
1559
- "outputs": [],
1560
- "stateMutability": "nonpayable",
1561
- "type": "function"
1562
- },
1563
- {
1564
- "inputs": [
1565
- {
1566
- "internalType": "RoleId",
1567
- "name": "role",
1568
- "type": "bytes8"
1569
- }
1570
- ],
1571
- "name": "roleExists",
1572
- "outputs": [
1573
- {
1574
- "internalType": "bool",
1575
- "name": "",
1576
- "type": "bool"
1577
- }
1578
- ],
1579
- "stateMutability": "view",
1580
- "type": "function"
1581
- },
1582
1492
  {
1583
1493
  "inputs": [
1584
1494
  {
@@ -1771,24 +1681,6 @@
1771
1681
  "stateMutability": "nonpayable",
1772
1682
  "type": "function"
1773
1683
  },
1774
- {
1775
- "inputs": [
1776
- {
1777
- "internalType": "RoleId",
1778
- "name": "role",
1779
- "type": "bytes8"
1780
- },
1781
- {
1782
- "internalType": "bool",
1783
- "name": "active",
1784
- "type": "bool"
1785
- }
1786
- ],
1787
- "name": "setRoleState",
1788
- "outputs": [],
1789
- "stateMutability": "nonpayable",
1790
- "type": "function"
1791
- },
1792
1684
  {
1793
1685
  "inputs": [
1794
1686
  {