@@ -1224,6 +1224,56 @@ def __init__(self, *args, **kwargs):
12241224 ]
12251225 )
12261226 )
1227+
1228+ class Liquidity_pool_update (GrapheneObject ):
1229+ def __init__ (self , * args , ** kwargs ):
1230+ if isArgsThisClass (self , args ):
1231+ self .data = args [0 ].data
1232+ else :
1233+ if len (args ) == 1 and len (kwargs ) == 0 :
1234+ kwargs = args [0 ]
1235+
1236+ if kwargs .get ("taker_fee_percent" ):
1237+ taker_fee_percent = Optional (Uint16 (kwargs ["taker_fee_percent" ]))
1238+ else :
1239+ taker_fee_percent = Optional (None )
1240+
1241+ if kwargs .get ("withdrawal_fee_percent" ):
1242+ withdrawal_fee_percent = Optional (Uint16 (kwargs ["withdrawal_fee_percent" ]))
1243+ else :
1244+ withdrawal_fee_percent = Optional (None )
1245+
1246+ super ().__init__ (
1247+ OrderedDict (
1248+ [
1249+ ("fee" , Asset (kwargs ["fee" ])),
1250+ ("account" , ObjectId (kwargs ["account" ], "account" )),
1251+ ("pool" , ObjectId (kwargs ["pool" ], "liquidity_pool" )),
1252+ ("taker_fee_percent" , taker_fee_percent ),
1253+ ("withdrawal_fee_percent" , withdrawal_fee_percent ),
1254+ ("extensions" , Set ([])),
1255+ ]
1256+ )
1257+ )
1258+
1259+ class Credit_deal_update (GrapheneObject ):
1260+ def __init__ (self , * args , ** kwargs ):
1261+ if isArgsThisClass (self , args ):
1262+ self .data = args [0 ].data
1263+ else :
1264+ if len (args ) == 1 and len (kwargs ) == 0 :
1265+ kwargs = args [0 ]
1266+ super ().__init__ (
1267+ OrderedDict (
1268+ [
1269+ ("fee" , Asset (kwargs ["fee" ])),
1270+ ("account" , ObjectId (kwargs ["account" ], "account" )),
1271+ ("deal_id" , ObjectId (kwargs ["deal_id" ], "credit_deal" )),
1272+ ("auto_repay" , Uint8 (kwargs ["auto_repay" ])),
1273+ ("extensions" , Set ([])),
1274+ ]
1275+ )
1276+ )
12271277
12281278class Limit_order_update (GrapheneObject ):
12291279 def __init__ (self , * args , ** kwargs ):
0 commit comments