Skip to content

Commit 5f066aa

Browse files
committed
upd VIZ new operation
1 parent 8d6a75b commit 5f066aa

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Tools/ChainOperations/ChainOperations.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class ChainOperations
1010
const OPERATION_CONTENT = 'content'; //only for VIZ
1111
const OPERATION_TRANSFER = 'transfer';
1212
const OPERATION_CUSTOM_JSON = 'custom_json';
13+
const OPERATION_CUSTOM = 'custom';//only for VIZ
1314

1415
const OPERATIONS_IDS = [
1516
self::OPERATION_VOTE => 0,

Tools/ChainOperations/OperationSerializer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ class OperationSerializer
5252
'required_posting_auths' => self::TYPE_SET_STRING,
5353
'id' => self::TYPE_STRING,
5454
'json' => self::TYPE_STRING
55+
],
56+
ChainOperations::OPERATION_CUSTOM => [//only for VIZ
57+
'required_auths' => self::TYPE_SET_STRING,
58+
'required_posting_auths' => self::TYPE_SET_STRING,
59+
'id' => self::TYPE_STRING,
60+
'json' => self::TYPE_STRING
5561
]
5662
];
5763

0 commit comments

Comments
 (0)