@etherisc/gif-next 0.0.2-fe77319 → 0.0.2-ffba655

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
  2. package/artifacts/contracts/components/Component.sol/Component.json +7 -7
  3. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +1 -1
  4. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +2 -2
  5. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +1 -1
  6. package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +6 -6
  7. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +1 -1
  8. package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +8 -8
  9. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  10. package/artifacts/contracts/components/Pool.sol/Pool.json +29 -11
  11. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  12. package/artifacts/contracts/components/Product.sol/Product.json +31 -13
  13. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +4 -0
  14. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +105 -0
  15. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +4 -0
  16. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +105 -0
  17. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +4 -0
  18. package/artifacts/contracts/experiment/{A.sol → inheritance/A.sol}/A.json +5 -5
  19. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +4 -0
  20. package/artifacts/contracts/experiment/{A.sol → inheritance/A.sol}/AShared.json +3 -3
  21. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +4 -0
  22. package/artifacts/contracts/experiment/{B.sol → inheritance/B.sol}/B.json +2 -2
  23. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +4 -0
  24. package/artifacts/contracts/experiment/{C.sol → inheritance/C.sol}/C.json +2 -2
  25. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +4 -0
  26. package/artifacts/contracts/experiment/{IA.sol → inheritance/IA.sol}/IA.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +4 -0
  28. package/artifacts/contracts/experiment/{IA.sol → inheritance/IA.sol}/ISharedA.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +4 -0
  30. package/artifacts/contracts/experiment/{IB.sol → inheritance/IB.sol}/IB.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +4 -0
  32. package/artifacts/contracts/experiment/{IC.sol → inheritance/IC.sol}/IC.json +1 -1
  33. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +4 -0
  34. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +10 -0
  35. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +4 -0
  36. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +10 -0
  37. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  38. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +60 -60
  39. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  40. package/artifacts/contracts/instance/Instance.sol/Instance.json +122 -64
  41. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +1 -1
  42. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +1 -1
  43. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +1 -1
  44. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +1 -1
  45. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +1 -1
  46. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
  47. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.json +24 -24
  48. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +1 -1
  49. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +48 -6
  50. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +1 -1
  51. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +1 -1
  52. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +6 -6
  53. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +1 -1
  54. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +26 -26
  55. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +1 -1
  56. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +3 -3
  57. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +1 -1
  58. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
  59. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
  60. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +18 -18
  61. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
  62. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +18 -18
  63. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +1 -1
  64. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
  65. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +10 -10
  66. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
  67. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +10 -10
  68. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +1 -1
  69. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +1 -1
  70. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +8 -8
  71. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +1 -1
  72. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +1 -1
  73. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +54 -12
  74. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +4 -0
  75. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +534 -0
  76. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +4 -0
  77. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +452 -0
  78. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +1 -1
  79. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +1 -1
  80. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +6 -6
  81. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  82. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +41 -33
  83. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +1 -1
  84. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +1 -1
  85. package/artifacts/contracts/registry/Registry.sol/Registerable.json +7 -7
  86. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  87. package/artifacts/contracts/registry/Registry.sol/Registry.json +100 -42
  88. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +1 -1
  89. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +2 -2
  90. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  91. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +174 -0
  92. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +4 -0
  93. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +10 -0
  94. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +4 -0
  95. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +92 -0
  96. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +4 -0
  97. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +174 -0
  98. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +4 -0
  99. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +453 -0
  100. package/contracts/components/Component.sol +3 -3
  101. package/contracts/components/IProduct.sol +2 -1
  102. package/contracts/components/Product.sol +5 -4
  103. package/contracts/experiment/errors/Require.sol +33 -0
  104. package/contracts/experiment/errors/Revert.sol +39 -0
  105. package/contracts/experiment/{B.sol → inheritance/B.sol} +1 -1
  106. package/contracts/experiment/{C.sol → inheritance/C.sol} +1 -1
  107. package/contracts/experiment/types/TypeA.sol +42 -0
  108. package/contracts/experiment/types/TypeB.sol +24 -0
  109. package/contracts/instance/IInstance.sol +3 -3
  110. package/contracts/instance/Instance.sol +4 -3
  111. package/contracts/instance/component/ComponentModule.sol +32 -43
  112. package/contracts/instance/component/IComponent.sol +11 -10
  113. package/contracts/instance/policy/IPolicy.sol +8 -8
  114. package/contracts/instance/policy/PolicyModule.sol +12 -11
  115. package/contracts/instance/pool/IPoolModule.sol +6 -5
  116. package/contracts/instance/pool/PoolModule.sol +9 -6
  117. package/contracts/instance/product/IProductService.sol +5 -4
  118. package/contracts/instance/product/ProductService.sol +14 -11
  119. package/contracts/registry/ChainNft.sol +173 -0
  120. package/contracts/registry/IChainNft.sol +18 -0
  121. package/contracts/registry/IRegistry.sol +16 -12
  122. package/contracts/registry/Registry.sol +43 -58
  123. package/contracts/types/Blocknumber.sol +60 -0
  124. package/contracts/types/ChainId.sol +30 -0
  125. package/contracts/types/NftId.sol +35 -0
  126. package/contracts/types/Timestamp.sol +55 -0
  127. package/contracts/types/UFixed.sol +211 -0
  128. package/package.json +1 -1
  129. package/artifacts/contracts/experiment/A.sol/A.dbg.json +0 -4
  130. package/artifacts/contracts/experiment/A.sol/AShared.dbg.json +0 -4
  131. package/artifacts/contracts/experiment/B.sol/B.dbg.json +0 -4
  132. package/artifacts/contracts/experiment/C.sol/C.dbg.json +0 -4
  133. package/artifacts/contracts/experiment/IA.sol/IA.dbg.json +0 -4
  134. package/artifacts/contracts/experiment/IA.sol/ISharedA.dbg.json +0 -4
  135. package/artifacts/contracts/experiment/IB.sol/IB.dbg.json +0 -4
  136. package/artifacts/contracts/experiment/IC.sol/IC.dbg.json +0 -4
  137. /package/contracts/experiment/{A.sol → inheritance/A.sol} +0 -0
  138. /package/contracts/experiment/{IA.sol → inheritance/IA.sol} +0 -0
  139. /package/contracts/experiment/{IB.sol → inheritance/IB.sol} +0 -0
  140. /package/contracts/experiment/{IC.sol → inheritance/IC.sol} +0 -0
@@ -70,9 +70,9 @@
70
70
  {
71
71
  "inputs": [
72
72
  {
73
- "internalType": "uint256",
73
+ "internalType": "NftId",
74
74
  "name": "nftId",
75
- "type": "uint256"
75
+ "type": "uint96"
76
76
  }
77
77
  ],
78
78
  "name": "activate",
@@ -98,14 +98,14 @@
98
98
  {
99
99
  "components": [
100
100
  {
101
- "internalType": "uint256",
101
+ "internalType": "NftId",
102
102
  "name": "nftId",
103
- "type": "uint256"
103
+ "type": "uint96"
104
104
  },
105
105
  {
106
- "internalType": "uint256",
106
+ "internalType": "NftId",
107
107
  "name": "parentNftId",
108
- "type": "uint256"
108
+ "type": "uint96"
109
109
  },
110
110
  {
111
111
  "internalType": "uint256",
@@ -148,17 +148,17 @@
148
148
  "type": "uint256"
149
149
  },
150
150
  {
151
- "internalType": "uint256",
151
+ "internalType": "NftId",
152
152
  "name": "bundleNftId",
153
- "type": "uint256"
153
+ "type": "uint96"
154
154
  }
155
155
  ],
156
156
  "name": "createApplication",
157
157
  "outputs": [
158
158
  {
159
- "internalType": "uint256",
159
+ "internalType": "NftId",
160
160
  "name": "nftId",
161
- "type": "uint256"
161
+ "type": "uint96"
162
162
  }
163
163
  ],
164
164
  "stateMutability": "nonpayable",
@@ -167,9 +167,9 @@
167
167
  {
168
168
  "inputs": [
169
169
  {
170
- "internalType": "uint256",
170
+ "internalType": "NftId",
171
171
  "name": "nftId",
172
- "type": "uint256"
172
+ "type": "uint96"
173
173
  },
174
174
  {
175
175
  "internalType": "address",
@@ -235,17 +235,17 @@
235
235
  {
236
236
  "inputs": [
237
237
  {
238
- "internalType": "uint256",
238
+ "internalType": "NftId",
239
239
  "name": "nftId",
240
- "type": "uint256"
240
+ "type": "uint96"
241
241
  }
242
242
  ],
243
243
  "name": "getBundleNftForPolicy",
244
244
  "outputs": [
245
245
  {
246
- "internalType": "uint256",
246
+ "internalType": "NftId",
247
247
  "name": "bundleNft",
248
- "type": "uint256"
248
+ "type": "uint96"
249
249
  }
250
250
  ],
251
251
  "stateMutability": "view",
@@ -262,9 +262,9 @@
262
262
  "name": "getComponentId",
263
263
  "outputs": [
264
264
  {
265
- "internalType": "uint256",
266
- "name": "id",
267
- "type": "uint256"
265
+ "internalType": "NftId",
266
+ "name": "nftId",
267
+ "type": "uint96"
268
268
  }
269
269
  ],
270
270
  "stateMutability": "view",
@@ -281,9 +281,9 @@
281
281
  "name": "getComponentId",
282
282
  "outputs": [
283
283
  {
284
- "internalType": "uint256",
285
- "name": "id",
286
- "type": "uint256"
284
+ "internalType": "NftId",
285
+ "name": "nftId",
286
+ "type": "uint96"
287
287
  }
288
288
  ],
289
289
  "stateMutability": "view",
@@ -292,9 +292,9 @@
292
292
  {
293
293
  "inputs": [
294
294
  {
295
- "internalType": "uint256",
296
- "name": "id",
297
- "type": "uint256"
295
+ "internalType": "NftId",
296
+ "name": "nftId",
297
+ "type": "uint96"
298
298
  }
299
299
  ],
300
300
  "name": "getComponentInfo",
@@ -302,9 +302,9 @@
302
302
  {
303
303
  "components": [
304
304
  {
305
- "internalType": "uint256",
305
+ "internalType": "NftId",
306
306
  "name": "nftId",
307
- "type": "uint256"
307
+ "type": "uint96"
308
308
  },
309
309
  {
310
310
  "internalType": "enum IComponent.CState",
@@ -323,9 +323,9 @@
323
323
  {
324
324
  "inputs": [
325
325
  {
326
- "internalType": "uint256",
327
- "name": "id",
328
- "type": "uint256"
326
+ "internalType": "NftId",
327
+ "name": "nftId",
328
+ "type": "uint96"
329
329
  }
330
330
  ],
331
331
  "name": "getComponentOwner",
@@ -383,9 +383,9 @@
383
383
  "name": "getNftId",
384
384
  "outputs": [
385
385
  {
386
- "internalType": "uint256",
386
+ "internalType": "NftId",
387
387
  "name": "nftId",
388
- "type": "uint256"
388
+ "type": "uint96"
389
389
  }
390
390
  ],
391
391
  "stateMutability": "view",
@@ -409,9 +409,9 @@
409
409
  "name": "getParentNftId",
410
410
  "outputs": [
411
411
  {
412
- "internalType": "uint256",
412
+ "internalType": "NftId",
413
413
  "name": "parentNftId",
414
- "type": "uint256"
414
+ "type": "uint96"
415
415
  }
416
416
  ],
417
417
  "stateMutability": "view",
@@ -420,9 +420,9 @@
420
420
  {
421
421
  "inputs": [
422
422
  {
423
- "internalType": "uint256",
423
+ "internalType": "NftId",
424
424
  "name": "nftId",
425
- "type": "uint256"
425
+ "type": "uint96"
426
426
  }
427
427
  ],
428
428
  "name": "getPolicyInfo",
@@ -430,9 +430,9 @@
430
430
  {
431
431
  "components": [
432
432
  {
433
- "internalType": "uint256",
433
+ "internalType": "NftId",
434
434
  "name": "nftId",
435
- "type": "uint256"
435
+ "type": "uint96"
436
436
  },
437
437
  {
438
438
  "internalType": "enum IPolicy.PolicyState",
@@ -486,9 +486,9 @@
486
486
  {
487
487
  "inputs": [
488
488
  {
489
- "internalType": "uint256",
489
+ "internalType": "NftId",
490
490
  "name": "nftId",
491
- "type": "uint256"
491
+ "type": "uint96"
492
492
  }
493
493
  ],
494
494
  "name": "getPoolInfo",
@@ -496,9 +496,9 @@
496
496
  {
497
497
  "components": [
498
498
  {
499
- "internalType": "uint256",
499
+ "internalType": "NftId",
500
500
  "name": "nftId",
501
- "type": "uint256"
501
+ "type": "uint96"
502
502
  },
503
503
  {
504
504
  "internalType": "address",
@@ -532,17 +532,17 @@
532
532
  {
533
533
  "inputs": [
534
534
  {
535
- "internalType": "uint256",
535
+ "internalType": "NftId",
536
536
  "name": "productNftId",
537
- "type": "uint256"
537
+ "type": "uint96"
538
538
  }
539
539
  ],
540
540
  "name": "getPoolNftId",
541
541
  "outputs": [
542
542
  {
543
- "internalType": "uint256",
543
+ "internalType": "NftId",
544
544
  "name": "poolNftId",
545
- "type": "uint256"
545
+ "type": "uint96"
546
546
  }
547
547
  ],
548
548
  "stateMutability": "view",
@@ -790,9 +790,9 @@
790
790
  "name": "register",
791
791
  "outputs": [
792
792
  {
793
- "internalType": "uint256",
793
+ "internalType": "NftId",
794
794
  "name": "nftId",
795
- "type": "uint256"
795
+ "type": "uint96"
796
796
  }
797
797
  ],
798
798
  "stateMutability": "nonpayable",
@@ -809,9 +809,9 @@
809
809
  "name": "registerComponent",
810
810
  "outputs": [
811
811
  {
812
- "internalType": "uint256",
813
- "name": "nftInfo",
814
- "type": "uint256"
812
+ "internalType": "NftId",
813
+ "name": "nftId",
814
+ "type": "uint96"
815
815
  }
816
816
  ],
817
817
  "stateMutability": "nonpayable",
@@ -840,9 +840,9 @@
840
840
  {
841
841
  "components": [
842
842
  {
843
- "internalType": "uint256",
843
+ "internalType": "NftId",
844
844
  "name": "nftId",
845
- "type": "uint256"
845
+ "type": "uint96"
846
846
  },
847
847
  {
848
848
  "internalType": "enum IComponent.CState",
@@ -858,9 +858,9 @@
858
858
  "name": "setComponentInfo",
859
859
  "outputs": [
860
860
  {
861
- "internalType": "uint256",
862
- "name": "componentId",
863
- "type": "uint256"
861
+ "internalType": "NftId",
862
+ "name": "componentNftId",
863
+ "type": "uint96"
864
864
  }
865
865
  ],
866
866
  "stateMutability": "nonpayable",
@@ -869,14 +869,14 @@
869
869
  {
870
870
  "inputs": [
871
871
  {
872
- "internalType": "uint256",
872
+ "internalType": "NftId",
873
873
  "name": "poolNftId",
874
- "type": "uint256"
874
+ "type": "uint96"
875
875
  },
876
876
  {
877
- "internalType": "uint256",
877
+ "internalType": "NftId",
878
878
  "name": "policyNftId",
879
- "type": "uint256"
879
+ "type": "uint96"
880
880
  }
881
881
  ],
882
882
  "name": "underwrite",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/28a5f33217876dc65b5c269e323df8a0.json"
3
+ "buildInfo": "../../../build-info/0a240c453e0599ab5c44d242e6a30e63.json"
4
4
  }