From 80e6423bb442404cae7dbf97caed17226c58a898 Mon Sep 17 00:00:00 2001 From: pauldelucia Date: Wed, 19 Feb 2025 10:55:10 +0700 Subject: [PATCH 1/2] fix: token history contract --- .../schema/v1/token-history-contract-documents.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/token-history-contract/schema/v1/token-history-contract-documents.json b/packages/token-history-contract/schema/v1/token-history-contract-documents.json index f8d1af53b03..5074ba77820 100644 --- a/packages/token-history-contract/schema/v1/token-history-contract-documents.json +++ b/packages/token-history-contract/schema/v1/token-history-contract-documents.json @@ -152,7 +152,7 @@ "amount": { "type": "integer", "minimum": 0, - "description": "The amount that was burned", + "description": "The amount that was minted", "position": 2 }, "note": { @@ -414,7 +414,8 @@ "minItems": 32, "maxItems": 32, "description": "The token ID", - "position": 0 + "position": 0, + "contentMediaType": "application/x.dash.dpp.identifier" }, "frozenIdentityId": { "type": "array", @@ -422,7 +423,8 @@ "minItems": 32, "maxItems": 32, "description": "The identity Id of the frozen token account", - "position": 1 + "position": 1, + "contentMediaType": "application/x.dash.dpp.identifier" } }, "required": [ @@ -565,6 +567,7 @@ "action": { "type": "integer", "minimum": 0, + "maximum": 255, "description": "The action we are performing", "position": 1 } @@ -648,4 +651,4 @@ ], "additionalProperties": false } -} +} \ No newline at end of file From 62ea5d4ec437616e0adf4e1020b812e677e9e8d5 Mon Sep 17 00:00:00 2001 From: pauldelucia Date: Mon, 24 Feb 2025 14:39:23 +0700 Subject: [PATCH 2/2] refactor: make emergency action enum in token history contract --- .../schema/v1/token-history-contract-documents.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/token-history-contract/schema/v1/token-history-contract-documents.json b/packages/token-history-contract/schema/v1/token-history-contract-documents.json index 5074ba77820..52f3d1ff5bb 100644 --- a/packages/token-history-contract/schema/v1/token-history-contract-documents.json +++ b/packages/token-history-contract/schema/v1/token-history-contract-documents.json @@ -566,9 +566,11 @@ }, "action": { "type": "integer", - "minimum": 0, - "maximum": 255, - "description": "The action we are performing", + "enum": [ + 0, + 1 + ], + "description": "The action we are performing. 0 - Pause, 1 - Resume", "position": 1 } },