@etherisc/gif-next 0.0.2-8a352ce → 0.0.2-9b97b55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
  2. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +1 -1
  3. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +1 -1
  4. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +1 -1
  5. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  6. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  7. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  8. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  9. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  10. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  11. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  12. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  13. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  14. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  15. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  16. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  17. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  19. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  20. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  21. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +1 -1
  22. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +1 -1
  23. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +1 -1
  24. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +1 -1
  25. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +1 -1
  26. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
  27. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +1 -1
  28. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +1 -1
  29. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +1 -1
  30. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +1 -1
  31. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +1 -1
  32. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +1 -1
  33. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
  34. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
  35. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
  36. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +1 -1
  37. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
  38. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
  39. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +1 -1
  40. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +1 -1
  41. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +1 -1
  42. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +1 -1
  43. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  44. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
  45. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +1 -1
  46. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +1 -1
  47. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  48. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +1 -1
  49. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +1 -1
  50. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  51. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +1 -1
  52. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  53. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +174 -0
  54. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  55. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  56. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +4 -0
  57. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +174 -0
  58. package/contracts/types/Blocknumber.sol +60 -0
  59. package/contracts/types/Timestamp.sol +55 -0
  60. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
+ }
@@ -0,0 +1,174 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "BlocknumberLib",
4
+ "sourceName": "contracts/types/Blocknumber.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "Blocknumber",
10
+ "name": "a",
11
+ "type": "uint32"
12
+ },
13
+ {
14
+ "internalType": "Blocknumber",
15
+ "name": "b",
16
+ "type": "uint32"
17
+ }
18
+ ],
19
+ "name": "eq",
20
+ "outputs": [
21
+ {
22
+ "internalType": "bool",
23
+ "name": "isSame",
24
+ "type": "bool"
25
+ }
26
+ ],
27
+ "stateMutability": "pure",
28
+ "type": "function"
29
+ },
30
+ {
31
+ "inputs": [
32
+ {
33
+ "internalType": "Blocknumber",
34
+ "name": "a",
35
+ "type": "uint32"
36
+ },
37
+ {
38
+ "internalType": "Blocknumber",
39
+ "name": "b",
40
+ "type": "uint32"
41
+ }
42
+ ],
43
+ "name": "gt",
44
+ "outputs": [
45
+ {
46
+ "internalType": "bool",
47
+ "name": "isAfter",
48
+ "type": "bool"
49
+ }
50
+ ],
51
+ "stateMutability": "pure",
52
+ "type": "function"
53
+ },
54
+ {
55
+ "inputs": [
56
+ {
57
+ "internalType": "Blocknumber",
58
+ "name": "a",
59
+ "type": "uint32"
60
+ },
61
+ {
62
+ "internalType": "Blocknumber",
63
+ "name": "b",
64
+ "type": "uint32"
65
+ }
66
+ ],
67
+ "name": "gte",
68
+ "outputs": [
69
+ {
70
+ "internalType": "bool",
71
+ "name": "isAfterOrSame",
72
+ "type": "bool"
73
+ }
74
+ ],
75
+ "stateMutability": "pure",
76
+ "type": "function"
77
+ },
78
+ {
79
+ "inputs": [
80
+ {
81
+ "internalType": "Blocknumber",
82
+ "name": "a",
83
+ "type": "uint32"
84
+ },
85
+ {
86
+ "internalType": "Blocknumber",
87
+ "name": "b",
88
+ "type": "uint32"
89
+ }
90
+ ],
91
+ "name": "lt",
92
+ "outputs": [
93
+ {
94
+ "internalType": "bool",
95
+ "name": "isBefore",
96
+ "type": "bool"
97
+ }
98
+ ],
99
+ "stateMutability": "pure",
100
+ "type": "function"
101
+ },
102
+ {
103
+ "inputs": [
104
+ {
105
+ "internalType": "Blocknumber",
106
+ "name": "a",
107
+ "type": "uint32"
108
+ },
109
+ {
110
+ "internalType": "Blocknumber",
111
+ "name": "b",
112
+ "type": "uint32"
113
+ }
114
+ ],
115
+ "name": "lte",
116
+ "outputs": [
117
+ {
118
+ "internalType": "bool",
119
+ "name": "isBeforeOrSame",
120
+ "type": "bool"
121
+ }
122
+ ],
123
+ "stateMutability": "pure",
124
+ "type": "function"
125
+ },
126
+ {
127
+ "inputs": [
128
+ {
129
+ "internalType": "Blocknumber",
130
+ "name": "a",
131
+ "type": "uint32"
132
+ },
133
+ {
134
+ "internalType": "Blocknumber",
135
+ "name": "b",
136
+ "type": "uint32"
137
+ }
138
+ ],
139
+ "name": "ne",
140
+ "outputs": [
141
+ {
142
+ "internalType": "bool",
143
+ "name": "isDifferent",
144
+ "type": "bool"
145
+ }
146
+ ],
147
+ "stateMutability": "pure",
148
+ "type": "function"
149
+ },
150
+ {
151
+ "inputs": [
152
+ {
153
+ "internalType": "Blocknumber",
154
+ "name": "blocknumber",
155
+ "type": "uint32"
156
+ }
157
+ ],
158
+ "name": "toInt",
159
+ "outputs": [
160
+ {
161
+ "internalType": "uint256",
162
+ "name": "",
163
+ "type": "uint256"
164
+ }
165
+ ],
166
+ "stateMutability": "pure",
167
+ "type": "function"
168
+ }
169
+ ],
170
+ "bytecode": "0x61044b610053600b82828239805160001a607314610046577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100875760003560e01c80636303db59116100655780636303db591461011c5780636effeac41461014c5780637b4f5d3b1461017c57806394642804146101ac57610087565b8063012340281461008c578063559cbd25146100bc57806356b0a7d4146100ec575b600080fd5b6100a660048036038101906100a1919061033e565b6101dc565b6040516100b39190610399565b60405180910390f35b6100d660048036038101906100d1919061033e565b6101f0565b6040516100e39190610399565b60405180910390f35b6101066004803603810190610101919061033e565b610204565b6040516101139190610399565b60405180910390f35b6101366004803603810190610131919061033e565b610218565b6040516101439190610399565b60405180910390f35b610166600480360381019061016191906103b4565b61022c565b60405161017391906103fa565b60405180910390f35b6101966004803603810190610191919061033e565b61023c565b6040516101a39190610399565b60405180910390f35b6101c660048036038101906101c1919061033e565b610250565b6040516101d39190610399565b60405180910390f35b60006101e88383610264565b905092915050565b60006101fc838361027e565b905092915050565b60006102108383610297565b905092915050565b600061022483836102b0565b905092915050565b60008163ffffffff169050919050565b600061024883836102c9565b905092915050565b600061025c83836102e3565b905092915050565b60008163ffffffff168363ffffffff161015905092915050565b60008163ffffffff168363ffffffff1614905092915050565b60008163ffffffff168363ffffffff1611905092915050565b60008163ffffffff168363ffffffff1610905092915050565b60008163ffffffff168363ffffffff161415905092915050565b60008163ffffffff168363ffffffff161115905092915050565b600080fd5b600063ffffffff82169050919050565b61031b81610302565b811461032657600080fd5b50565b60008135905061033881610312565b92915050565b60008060408385031215610355576103546102fd565b5b600061036385828601610329565b925050602061037485828601610329565b9150509250929050565b60008115159050919050565b6103938161037e565b82525050565b60006020820190506103ae600083018461038a565b92915050565b6000602082840312156103ca576103c96102fd565b5b60006103d884828501610329565b91505092915050565b6000819050919050565b6103f4816103e1565b82525050565b600060208201905061040f60008301846103eb565b9291505056fea2646970667358221220fdc05433fd4bfbb177365743b1cd37eab9f09741d8dc0be94605f5a2abdfefcd64736f6c63430008140033",
171
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100875760003560e01c80636303db59116100655780636303db591461011c5780636effeac41461014c5780637b4f5d3b1461017c57806394642804146101ac57610087565b8063012340281461008c578063559cbd25146100bc57806356b0a7d4146100ec575b600080fd5b6100a660048036038101906100a1919061033e565b6101dc565b6040516100b39190610399565b60405180910390f35b6100d660048036038101906100d1919061033e565b6101f0565b6040516100e39190610399565b60405180910390f35b6101066004803603810190610101919061033e565b610204565b6040516101139190610399565b60405180910390f35b6101366004803603810190610131919061033e565b610218565b6040516101439190610399565b60405180910390f35b610166600480360381019061016191906103b4565b61022c565b60405161017391906103fa565b60405180910390f35b6101966004803603810190610191919061033e565b61023c565b6040516101a39190610399565b60405180910390f35b6101c660048036038101906101c1919061033e565b610250565b6040516101d39190610399565b60405180910390f35b60006101e88383610264565b905092915050565b60006101fc838361027e565b905092915050565b60006102108383610297565b905092915050565b600061022483836102b0565b905092915050565b60008163ffffffff169050919050565b600061024883836102c9565b905092915050565b600061025c83836102e3565b905092915050565b60008163ffffffff168363ffffffff161015905092915050565b60008163ffffffff168363ffffffff1614905092915050565b60008163ffffffff168363ffffffff1611905092915050565b60008163ffffffff168363ffffffff1610905092915050565b60008163ffffffff168363ffffffff161415905092915050565b60008163ffffffff168363ffffffff161115905092915050565b600080fd5b600063ffffffff82169050919050565b61031b81610302565b811461032657600080fd5b50565b60008135905061033881610312565b92915050565b60008060408385031215610355576103546102fd565b5b600061036385828601610329565b925050602061037485828601610329565b9150509250929050565b60008115159050919050565b6103938161037e565b82525050565b60006020820190506103ae600083018461038a565b92915050565b6000602082840312156103ca576103c96102fd565b5b60006103d884828501610329565b91505092915050565b6000819050919050565b6103f4816103e1565b82525050565b600060208201905061040f60008301846103eb565b9291505056fea2646970667358221220fdc05433fd4bfbb177365743b1cd37eab9f09741d8dc0be94605f5a2abdfefcd64736f6c63430008140033",
172
+ "linkReferences": {},
173
+ "deployedLinkReferences": {}
174
+ }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3e916db2bcd09918b64d4a7861dc5159.json"
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
4
  }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/a19d721d8c5f88082fd889ddfe9460cc.json"
4
+ }
@@ -0,0 +1,174 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "TimestampLib",
4
+ "sourceName": "contracts/types/Timestamp.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "Timestamp",
10
+ "name": "a",
11
+ "type": "uint40"
12
+ },
13
+ {
14
+ "internalType": "Timestamp",
15
+ "name": "b",
16
+ "type": "uint40"
17
+ }
18
+ ],
19
+ "name": "eq",
20
+ "outputs": [
21
+ {
22
+ "internalType": "bool",
23
+ "name": "isSame",
24
+ "type": "bool"
25
+ }
26
+ ],
27
+ "stateMutability": "pure",
28
+ "type": "function"
29
+ },
30
+ {
31
+ "inputs": [
32
+ {
33
+ "internalType": "Timestamp",
34
+ "name": "a",
35
+ "type": "uint40"
36
+ },
37
+ {
38
+ "internalType": "Timestamp",
39
+ "name": "b",
40
+ "type": "uint40"
41
+ }
42
+ ],
43
+ "name": "gt",
44
+ "outputs": [
45
+ {
46
+ "internalType": "bool",
47
+ "name": "isAfter",
48
+ "type": "bool"
49
+ }
50
+ ],
51
+ "stateMutability": "pure",
52
+ "type": "function"
53
+ },
54
+ {
55
+ "inputs": [
56
+ {
57
+ "internalType": "Timestamp",
58
+ "name": "a",
59
+ "type": "uint40"
60
+ },
61
+ {
62
+ "internalType": "Timestamp",
63
+ "name": "b",
64
+ "type": "uint40"
65
+ }
66
+ ],
67
+ "name": "gte",
68
+ "outputs": [
69
+ {
70
+ "internalType": "bool",
71
+ "name": "isAfterOrSame",
72
+ "type": "bool"
73
+ }
74
+ ],
75
+ "stateMutability": "pure",
76
+ "type": "function"
77
+ },
78
+ {
79
+ "inputs": [
80
+ {
81
+ "internalType": "Timestamp",
82
+ "name": "a",
83
+ "type": "uint40"
84
+ },
85
+ {
86
+ "internalType": "Timestamp",
87
+ "name": "b",
88
+ "type": "uint40"
89
+ }
90
+ ],
91
+ "name": "lt",
92
+ "outputs": [
93
+ {
94
+ "internalType": "bool",
95
+ "name": "isBefore",
96
+ "type": "bool"
97
+ }
98
+ ],
99
+ "stateMutability": "pure",
100
+ "type": "function"
101
+ },
102
+ {
103
+ "inputs": [
104
+ {
105
+ "internalType": "Timestamp",
106
+ "name": "a",
107
+ "type": "uint40"
108
+ },
109
+ {
110
+ "internalType": "Timestamp",
111
+ "name": "b",
112
+ "type": "uint40"
113
+ }
114
+ ],
115
+ "name": "lte",
116
+ "outputs": [
117
+ {
118
+ "internalType": "bool",
119
+ "name": "isBeforeOrSame",
120
+ "type": "bool"
121
+ }
122
+ ],
123
+ "stateMutability": "pure",
124
+ "type": "function"
125
+ },
126
+ {
127
+ "inputs": [
128
+ {
129
+ "internalType": "Timestamp",
130
+ "name": "a",
131
+ "type": "uint40"
132
+ },
133
+ {
134
+ "internalType": "Timestamp",
135
+ "name": "b",
136
+ "type": "uint40"
137
+ }
138
+ ],
139
+ "name": "ne",
140
+ "outputs": [
141
+ {
142
+ "internalType": "bool",
143
+ "name": "isDifferent",
144
+ "type": "bool"
145
+ }
146
+ ],
147
+ "stateMutability": "pure",
148
+ "type": "function"
149
+ },
150
+ {
151
+ "inputs": [
152
+ {
153
+ "internalType": "Timestamp",
154
+ "name": "timestamp",
155
+ "type": "uint40"
156
+ }
157
+ ],
158
+ "name": "toInt",
159
+ "outputs": [
160
+ {
161
+ "internalType": "uint256",
162
+ "name": "",
163
+ "type": "uint256"
164
+ }
165
+ ],
166
+ "stateMutability": "pure",
167
+ "type": "function"
168
+ }
169
+ ],
170
+ "bytecode": "0x610459610053600b82828239805160001a607314610046577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100875760003560e01c8063add9ce9911610065578063add9ce991461011c578063c24922ce1461014c578063da09d4841461017c578063ddf3d631146101ac57610087565b806383ffcdef1461008c57806394335b1a146100bc5780639df87639146100ec575b600080fd5b6100a660048036038101906100a1919061034c565b6101dc565b6040516100b391906103a7565b60405180910390f35b6100d660048036038101906100d1919061034c565b6101f0565b6040516100e391906103a7565b60405180910390f35b6101066004803603810190610101919061034c565b610204565b60405161011391906103a7565b60405180910390f35b6101366004803603810190610131919061034c565b610218565b60405161014391906103a7565b60405180910390f35b6101666004803603810190610161919061034c565b61022c565b60405161017391906103a7565b60405180910390f35b610196600480360381019061019191906103c2565b610240565b6040516101a39190610408565b60405180910390f35b6101c660048036038101906101c1919061034c565b610251565b6040516101d391906103a7565b60405180910390f35b60006101e88383610265565b905092915050565b60006101fc8383610280565b905092915050565b6000610210838361029c565b905092915050565b600061022483836102b7565b905092915050565b600061023883836102d2565b905092915050565b60008164ffffffffff169050919050565b600061025d83836102ee565b905092915050565b60008164ffffffffff168364ffffffffff1611905092915050565b60008164ffffffffff168364ffffffffff161115905092915050565b60008164ffffffffff168364ffffffffff1614905092915050565b60008164ffffffffff168364ffffffffff1610905092915050565b60008164ffffffffff168364ffffffffff161015905092915050565b60008164ffffffffff168364ffffffffff161415905092915050565b600080fd5b600064ffffffffff82169050919050565b6103298161030f565b811461033457600080fd5b50565b60008135905061034681610320565b92915050565b600080604083850312156103635761036261030a565b5b600061037185828601610337565b925050602061038285828601610337565b9150509250929050565b60008115159050919050565b6103a18161038c565b82525050565b60006020820190506103bc6000830184610398565b92915050565b6000602082840312156103d8576103d761030a565b5b60006103e684828501610337565b91505092915050565b6000819050919050565b610402816103ef565b82525050565b600060208201905061041d60008301846103f9565b9291505056fea264697066735822122048c2371eab33467f3c6be4635fa8f7e413187dc1dcdc45d51411cb1ef4238d1964736f6c63430008140033",
171
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100875760003560e01c8063add9ce9911610065578063add9ce991461011c578063c24922ce1461014c578063da09d4841461017c578063ddf3d631146101ac57610087565b806383ffcdef1461008c57806394335b1a146100bc5780639df87639146100ec575b600080fd5b6100a660048036038101906100a1919061034c565b6101dc565b6040516100b391906103a7565b60405180910390f35b6100d660048036038101906100d1919061034c565b6101f0565b6040516100e391906103a7565b60405180910390f35b6101066004803603810190610101919061034c565b610204565b60405161011391906103a7565b60405180910390f35b6101366004803603810190610131919061034c565b610218565b60405161014391906103a7565b60405180910390f35b6101666004803603810190610161919061034c565b61022c565b60405161017391906103a7565b60405180910390f35b610196600480360381019061019191906103c2565b610240565b6040516101a39190610408565b60405180910390f35b6101c660048036038101906101c1919061034c565b610251565b6040516101d391906103a7565b60405180910390f35b60006101e88383610265565b905092915050565b60006101fc8383610280565b905092915050565b6000610210838361029c565b905092915050565b600061022483836102b7565b905092915050565b600061023883836102d2565b905092915050565b60008164ffffffffff169050919050565b600061025d83836102ee565b905092915050565b60008164ffffffffff168364ffffffffff1611905092915050565b60008164ffffffffff168364ffffffffff161115905092915050565b60008164ffffffffff168364ffffffffff1614905092915050565b60008164ffffffffff168364ffffffffff1610905092915050565b60008164ffffffffff168364ffffffffff161015905092915050565b60008164ffffffffff168364ffffffffff161415905092915050565b600080fd5b600064ffffffffff82169050919050565b6103298161030f565b811461033457600080fd5b50565b60008135905061034681610320565b92915050565b600080604083850312156103635761036261030a565b5b600061037185828601610337565b925050602061038285828601610337565b9150509250929050565b60008115159050919050565b6103a18161038c565b82525050565b60006020820190506103bc6000830184610398565b92915050565b6000602082840312156103d8576103d761030a565b5b60006103e684828501610337565b91505092915050565b6000819050919050565b610402816103ef565b82525050565b600060208201905061041d60008301846103f9565b9291505056fea264697066735822122048c2371eab33467f3c6be4635fa8f7e413187dc1dcdc45d51411cb1ef4238d1964736f6c63430008140033",
172
+ "linkReferences": {},
173
+ "deployedLinkReferences": {}
174
+ }
@@ -0,0 +1,60 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ pragma solidity ^0.8.19;
3
+
4
+ type Blocknumber is uint32;
5
+
6
+ using {
7
+ gtBlocknumber as >,
8
+ gteBlocknumber as >=,
9
+ ltBlocknumber as <,
10
+ lteBlocknumber as <=,
11
+ eqBlocknumber as ==,
12
+ neBlocknumber as !=,
13
+ BlocknumberLib.toInt
14
+ } for Blocknumber global;
15
+
16
+ /// @dev return true if Blocknumber a is greater than Blocknumber b
17
+ function gtBlocknumber(Blocknumber a, Blocknumber b) pure returns(bool) { return Blocknumber.unwrap(a) > Blocknumber.unwrap(b); }
18
+ /// @dev return true if Blocknumber a is greater than or equal to Blocknumber b
19
+ function gteBlocknumber(Blocknumber a, Blocknumber b) pure returns(bool) { return Blocknumber.unwrap(a) >= Blocknumber.unwrap(b); }
20
+
21
+ /// @dev return true if Blocknumber a is less than Blocknumber b
22
+ function ltBlocknumber(Blocknumber a, Blocknumber b) pure returns(bool) { return Blocknumber.unwrap(a) < Blocknumber.unwrap(b); }
23
+ /// @dev return true if Blocknumber a is less than or equal to Blocknumber b
24
+ function lteBlocknumber(Blocknumber a, Blocknumber b) pure returns(bool) { return Blocknumber.unwrap(a) <= Blocknumber.unwrap(b); }
25
+
26
+ /// @dev return true if Blocknumber a is equal to Blocknumber b
27
+ function eqBlocknumber(Blocknumber a, Blocknumber b) pure returns(bool) { return Blocknumber.unwrap(a) == Blocknumber.unwrap(b); }
28
+ /// @dev return true if Blocknumber a is not equal to Blocknumber b
29
+ function neBlocknumber(Blocknumber a, Blocknumber b) pure returns(bool) { return Blocknumber.unwrap(a) != Blocknumber.unwrap(b); }
30
+
31
+ /// @dev Converts the uint256 to a Blocknumber.
32
+ function toBlocknumber(uint256 blocknum) pure returns(Blocknumber) { return Blocknumber.wrap(uint32(blocknum)); }
33
+
34
+ function blockBlocknumber() view returns(Blocknumber) { return toBlocknumber(block.number); }
35
+
36
+ /// @dev Return the Blocknumber zero (0)
37
+ function zeroBlocknumber() pure returns(Blocknumber) { return toBlocknumber(0); }
38
+
39
+ /// @dev Return the current block number
40
+ function blockNumber() view returns(Blocknumber) { return toBlocknumber(block.number); }
41
+
42
+ library BlocknumberLib {
43
+ /// @dev return true if Blocknumber a is greater than Blocknumber b
44
+ function gt(Blocknumber a, Blocknumber b) public pure returns(bool isAfter) { return gtBlocknumber(a, b); }
45
+ /// @dev return true if Blocknumber a is greater than or equal to Blocknumber b
46
+ function gte(Blocknumber a, Blocknumber b) public pure returns(bool isAfterOrSame) { return gteBlocknumber(a, b); }
47
+
48
+ /// @dev return true if Blocknumber a is less than Blocknumber b
49
+ function lt(Blocknumber a, Blocknumber b) public pure returns(bool isBefore) { return ltBlocknumber(a, b); }
50
+ /// @dev return true if Blocknumber a is less than or equal to Blocknumber b
51
+ function lte(Blocknumber a, Blocknumber b) public pure returns(bool isBeforeOrSame) { return lteBlocknumber(a, b); }
52
+
53
+ /// @dev return true if Blocknumber a is equal to Blocknumber b
54
+ function eq(Blocknumber a, Blocknumber b) public pure returns(bool isSame) { return eqBlocknumber(a, b); }
55
+ /// @dev return true if Blocknumber a is not equal to Blocknumber b
56
+ function ne(Blocknumber a, Blocknumber b) public pure returns(bool isDifferent) { return neBlocknumber(a, b); }
57
+
58
+ /// @dev converts the Blocknumber to a uint256
59
+ function toInt(Blocknumber blocknumber) public pure returns(uint256) { return uint256(uint32(Blocknumber.unwrap(blocknumber))); }
60
+ }
@@ -0,0 +1,55 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ pragma solidity ^0.8.19;
3
+
4
+ type Timestamp is uint40;
5
+
6
+ using {
7
+ gtTimestamp as >,
8
+ gteTimestamp as >=,
9
+ ltTimestamp as <,
10
+ lteTimestamp as <=,
11
+ eqTimestamp as ==,
12
+ neTimestamp as !=
13
+ } for Timestamp global;
14
+
15
+ /// @dev return true if Timestamp a is after Timestamp b
16
+ function gtTimestamp(Timestamp a, Timestamp b) pure returns(bool) { return Timestamp.unwrap(a) > Timestamp.unwrap(b); }
17
+ /// @dev return true if Timestamp a is after or equal to Timestamp b
18
+ function gteTimestamp(Timestamp a, Timestamp b) pure returns(bool) { return Timestamp.unwrap(a) >= Timestamp.unwrap(b); }
19
+
20
+ /// @dev return true if Timestamp a is before Timestamp b
21
+ function ltTimestamp(Timestamp a, Timestamp b) pure returns(bool) { return Timestamp.unwrap(a) < Timestamp.unwrap(b); }
22
+ /// @dev return true if Timestamp a is before or equal to Timestamp b
23
+ function lteTimestamp(Timestamp a, Timestamp b) pure returns(bool) { return Timestamp.unwrap(a) <= Timestamp.unwrap(b); }
24
+
25
+ /// @dev return true if Timestamp a is equal to Timestamp b
26
+ function eqTimestamp(Timestamp a, Timestamp b) pure returns(bool) { return Timestamp.unwrap(a) == Timestamp.unwrap(b); }
27
+ /// @dev return true if Timestamp a is not equal to Timestamp b
28
+ function neTimestamp(Timestamp a, Timestamp b) pure returns(bool) { return Timestamp.unwrap(a) != Timestamp.unwrap(b); }
29
+
30
+ /// @dev Converts the uint256 to a Timestamp.
31
+ function toTimestamp(uint256 timestamp) pure returns(Timestamp) { return Timestamp.wrap(uint40(timestamp));}
32
+
33
+ function blockTimestamp() view returns(Timestamp) { return toTimestamp(block.timestamp); }
34
+
35
+ /// @dev Return the Timestamp zero (0)
36
+ function zeroTimestamp() pure returns(Timestamp) { return toTimestamp(0); }
37
+
38
+ library TimestampLib {
39
+ /// @dev return true if Timestamp a is after Timestamp b
40
+ function gt(Timestamp a, Timestamp b) public pure returns(bool isAfter) { return gtTimestamp(a, b); }
41
+ /// @dev return true if Timestamp a is after or the same than Timestamp b
42
+ function gte(Timestamp a, Timestamp b) public pure returns(bool isAfterOrSame) { return gteTimestamp(a, b); }
43
+
44
+ /// @dev return true if Timestamp a is before Timestamp b
45
+ function lt(Timestamp a, Timestamp b) public pure returns(bool isBefore) { return ltTimestamp(a, b); }
46
+ /// @dev return true if Timestamp a is before or the same than Timestamp b
47
+ function lte(Timestamp a, Timestamp b) public pure returns(bool isBeforeOrSame) { return lteTimestamp(a, b); }
48
+
49
+ /// @dev return true if Timestamp a is equal to Timestamp b
50
+ function eq(Timestamp a, Timestamp b) public pure returns(bool isSame) { return eqTimestamp(a, b); }
51
+ /// @dev return true if Timestamp a is not equal to Timestamp b
52
+ function ne(Timestamp a, Timestamp b) public pure returns(bool isDifferent) { return neTimestamp(a, b); }
53
+
54
+ function toInt(Timestamp timestamp) public pure returns(uint256) { return uint256(uint40(Timestamp.unwrap(timestamp))); }
55
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etherisc/gif-next",
3
- "version": "0.0.2-8a352ce",
3
+ "version": "0.0.2-9b97b55",
4
4
  "description": "This is the repository for the next version of the Generic Insurance Framework (GIF) smart contracts. ",
5
5
  "main": "index.js",
6
6
  "scripts": {