From 7b5078469b06c5bb5505b43addd8e7b873326882 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Wed, 28 Apr 2021 13:58:27 +0200 Subject: [PATCH] Add docs on Timestamp range --- contracts/ibc-reflect-send/schema/execute_msg.json | 2 +- contracts/ibc-reflect-send/schema/packet_msg.json | 2 +- contracts/ibc-reflect/schema/packet_msg.json | 2 +- contracts/reflect/schema/execute_msg.json | 2 +- contracts/reflect/schema/response_for__custom_msg.json | 2 +- packages/std/schema/timestamp.json | 2 +- packages/std/src/timestamp.rs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/contracts/ibc-reflect-send/schema/execute_msg.json b/contracts/ibc-reflect-send/schema/execute_msg.json index 6422b141b7..36d36cd7b1 100644 --- a/contracts/ibc-reflect-send/schema/execute_msg.json +++ b/contracts/ibc-reflect-send/schema/execute_msg.json @@ -595,7 +595,7 @@ ] }, "Timestamp": { - "description": "A point in time in nanosecond precision.\n\nThis type cannot represent any time before the UNIX epoch because both fields are unsigned.", + "description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.", "allOf": [ { "$ref": "#/definitions/Uint64" diff --git a/contracts/ibc-reflect-send/schema/packet_msg.json b/contracts/ibc-reflect-send/schema/packet_msg.json index 26409fdc57..55cb01fedd 100644 --- a/contracts/ibc-reflect-send/schema/packet_msg.json +++ b/contracts/ibc-reflect-send/schema/packet_msg.json @@ -548,7 +548,7 @@ ] }, "Timestamp": { - "description": "A point in time in nanosecond precision.\n\nThis type cannot represent any time before the UNIX epoch because both fields are unsigned.", + "description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.", "allOf": [ { "$ref": "#/definitions/Uint64" diff --git a/contracts/ibc-reflect/schema/packet_msg.json b/contracts/ibc-reflect/schema/packet_msg.json index 313b563ee9..1df378509b 100644 --- a/contracts/ibc-reflect/schema/packet_msg.json +++ b/contracts/ibc-reflect/schema/packet_msg.json @@ -547,7 +547,7 @@ ] }, "Timestamp": { - "description": "A point in time in nanosecond precision.\n\nThis type cannot represent any time before the UNIX epoch because both fields are unsigned.", + "description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.", "allOf": [ { "$ref": "#/definitions/Uint64" diff --git a/contracts/reflect/schema/execute_msg.json b/contracts/reflect/schema/execute_msg.json index 5ee55dd75c..6fff1e258d 100644 --- a/contracts/reflect/schema/execute_msg.json +++ b/contracts/reflect/schema/execute_msg.json @@ -630,7 +630,7 @@ } }, "Timestamp": { - "description": "A point in time in nanosecond precision.\n\nThis type cannot represent any time before the UNIX epoch because both fields are unsigned.", + "description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.", "allOf": [ { "$ref": "#/definitions/Uint64" diff --git a/contracts/reflect/schema/response_for__custom_msg.json b/contracts/reflect/schema/response_for__custom_msg.json index 000ae772eb..f98154dc17 100644 --- a/contracts/reflect/schema/response_for__custom_msg.json +++ b/contracts/reflect/schema/response_for__custom_msg.json @@ -618,7 +618,7 @@ } }, "Timestamp": { - "description": "A point in time in nanosecond precision.\n\nThis type cannot represent any time before the UNIX epoch because both fields are unsigned.", + "description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.", "allOf": [ { "$ref": "#/definitions/Uint64" diff --git a/packages/std/schema/timestamp.json b/packages/std/schema/timestamp.json index 3b298f35aa..889461d982 100644 --- a/packages/std/schema/timestamp.json +++ b/packages/std/schema/timestamp.json @@ -1,7 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Timestamp", - "description": "A point in time in nanosecond precision.\n\nThis type cannot represent any time before the UNIX epoch because both fields are unsigned.", + "description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.", "allOf": [ { "$ref": "#/definitions/Uint64" diff --git a/packages/std/src/timestamp.rs b/packages/std/src/timestamp.rs index 8749adb7c7..c0e92eeea9 100644 --- a/packages/std/src/timestamp.rs +++ b/packages/std/src/timestamp.rs @@ -5,7 +5,7 @@ use crate::math::Uint64; /// A point in time in nanosecond precision. /// -/// This type cannot represent any time before the UNIX epoch because both fields are unsigned. +/// This type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z. #[derive( Serialize, Deserialize, Copy, Clone, Default, Debug, PartialEq, Eq, PartialOrd, Ord, JsonSchema, )]