From cdb4550c18a0b6c4ce1374857806a62aff396104 Mon Sep 17 00:00:00 2001
From: sicarius97 <isaiah@croattco.com>
Date: Thu, 3 Jun 2021 03:47:08 -0500
Subject: [PATCH] added operation for HF-25 collateralized_convert

---
 src/auth/serializer/src/operations.js | 10 ++++++++++
 src/broadcast/operations.js           | 11 +++++++++++
 2 files changed, 21 insertions(+)

diff --git a/src/auth/serializer/src/operations.js b/src/auth/serializer/src/operations.js
index 335276a..abc330b 100644
--- a/src/auth/serializer/src/operations.js
+++ b/src/auth/serializer/src/operations.js
@@ -301,6 +301,16 @@ let convert = new Serializer(
 }
 );
 
+let collateralized_convert = new Serializer(
+    "collateralized_convert",{
+    owner: string,
+    collateral_amount: asset,
+    converted_amount: asset,
+    requestid: uint32,
+    conversion_date: time_point_sec
+}
+);
+
 var authority = new Serializer(
     "authority", {
     weight_threshold: uint32,
diff --git a/src/broadcast/operations.js b/src/broadcast/operations.js
index 0735ed1..03d38b9 100644
--- a/src/broadcast/operations.js
+++ b/src/broadcast/operations.js
@@ -96,6 +96,17 @@ module.exports = [
       "amount"
     ]
   },
+  {
+    "roles": ["active","owner"],
+    "operation": "collateralized_convert",
+    "params": [
+      "owner",
+      "collateral_amount",
+      "converted_amount",
+      "requestid",
+      "conversion_date"
+    ]
+  },
   {
     "roles": ["active", "owner"],
     "operation": "account_create",
-- 
GitLab