@@ -1045,8 +1045,7 @@ def test_assert_b(self):
1045
1045
)
1046
1046
self .doit (0 )
1047
1047
1048
-
1049
- def test_samet_fund_create (self ):
1048
+ def test_samet_fund_create (self ):
1050
1049
self .op = operations .Samet_fund_create (
1051
1050
** {
1052
1051
"fee" : {"amount" : 0 , "asset_id" : "1.3.0" },
@@ -1057,10 +1056,15 @@ def test_samet_fund_create(self):
1057
1056
"extensions" : [],
1058
1057
}
1059
1058
)
1060
- self .cm = ('f68585abf4dce7c804570140000000000000000000b60200102700000000000001000000000001203431966ca7e7f40e921633cd767eece0ddefc5abb5224965cca6458dfa28572b687c459a2f4189bf1a41e13336fac6db10cc8c90215888948453b5063a8ccb9f' )
1059
+ self .cm = (
1060
+ "f68585abf4dce7c804570140000000000000000000b60200102"
1061
+ "700000000000001000000000001203431966ca7e7f40e921633"
1062
+ "cd767eece0ddefc5abb5224965cca6458dfa28572b687c459a2"
1063
+ "f4189bf1a41e13336fac6db10cc8c90215888948453b5063a8c"
1064
+ "cb9f"
1065
+ )
1061
1066
self .doit ()
1062
1067
1063
-
1064
1068
def test_samet_fund_delete (self ):
1065
1069
self .op = operations .Samet_fund_delete (
1066
1070
** {
@@ -1070,10 +1074,14 @@ def test_samet_fund_delete(self):
1070
1074
"extensions" : [],
1071
1075
}
1072
1076
)
1073
- self .cm = ('f68585abf4dce7c8045701410000000000000000007b010000011f4abefaf5a630eace47f6db44d6516c4e459e70cd89ba5988586d04be40646cf3723cf4b5979e5d094b819f94c37d19e4fac5a0aa20ba3ff8dab8d8482b5356d8' )
1077
+ self .cm = (
1078
+ "f68585abf4dce7c8045701410000000000000000007b0100000"
1079
+ "11f4abefaf5a630eace47f6db44d6516c4e459e70cd89ba5988"
1080
+ "586d04be40646cf3723cf4b5979e5d094b819f94c37d19e4fac"
1081
+ "5a0aa20ba3ff8dab8d8482b5356d8"
1082
+ )
1074
1083
self .doit ()
1075
1084
1076
-
1077
1085
def test_samet_fund_update (self ):
1078
1086
self .op = operations .Samet_fund_update (
1079
1087
** {
@@ -1085,10 +1093,14 @@ def test_samet_fund_update(self):
1085
1093
"extensions" : [],
1086
1094
}
1087
1095
)
1088
- self .cm = ('f68585abf4dce7c8045701420000000000000000007b010001020000000000011f08656f260d4e4c6580202ab2520cad06cdc2539f03c3a74bcc3b6a8cdf2da5f84b252f09f15b77e825f5bb3fe7ff70a28d48516160653318beda6e156ba47987' )
1096
+ self .cm = (
1097
+ "f68585abf4dce7c8045701420000000000000000007b0100010"
1098
+ "20000000000011f08656f260d4e4c6580202ab2520cad06cdc2"
1099
+ "539f03c3a74bcc3b6a8cdf2da5f84b252f09f15b77e825f5bb3"
1100
+ "fe7ff70a28d48516160653318beda6e156ba47987"
1101
+ )
1089
1102
self .doit ()
1090
1103
1091
-
1092
1104
def test_samet_fund_borrow (self ):
1093
1105
self .op = operations .Samet_fund_borrow (
1094
1106
** {
@@ -1099,10 +1111,14 @@ def test_samet_fund_borrow(self):
1099
1111
"extensions" : [],
1100
1112
}
1101
1113
)
1102
- self .cm = ('f68585abf4dce7c8045701430000000000000000007b010a00000000000000000000012007d969d65e15f9bb2c227fdd1baf74fbb0ce3e9ef197b386098188a78c5a1b992a1d7da0d39a91fb862536b53d719f02d88657cb21ae1c2ab55222d4814a893d' )
1114
+ self .cm = (
1115
+ "f68585abf4dce7c8045701430000000000000000007b010a000"
1116
+ "00000000000000000012007d969d65e15f9bb2c227fdd1baf74"
1117
+ "fbb0ce3e9ef197b386098188a78c5a1b992a1d7da0d39a91fb8"
1118
+ "62536b53d719f02d88657cb21ae1c2ab55222d4814a893d"
1119
+ )
1103
1120
self .doit ()
1104
1121
1105
-
1106
1122
def test_samet_fund_repay (self ):
1107
1123
self .op = operations .Samet_fund_repay (
1108
1124
** {
@@ -1114,10 +1130,15 @@ def test_samet_fund_repay(self):
1114
1130
"extensions" : [],
1115
1131
}
1116
1132
)
1117
- self .cm = ('f68585abf4dce7c8045701440000000000000000007b010a00000000000000000a00000000000000000000011f573766a5dfe79df21d82df4a858a032d083e7b5db8f1d10cf6c0f48967965190607170df053d90fdf46f6fe1d10e160d292de03697136f91865588718a272e88' )
1133
+ self .cm = (
1134
+ "f68585abf4dce7c8045701440000000000000000007b010a000"
1135
+ "00000000000000a00000000000000000000011f573766a5dfe7"
1136
+ "9df21d82df4a858a032d083e7b5db8f1d10cf6c0f4896796519"
1137
+ "0607170df053d90fdf46f6fe1d10e160d292de03697136f9186"
1138
+ "5588718a272e88"
1139
+ )
1118
1140
self .doit ()
1119
1141
1120
-
1121
1142
def test_credit_offer_create (self ):
1122
1143
self .op = operations .Credit_offer_create (
1123
1144
** {
@@ -1130,29 +1151,30 @@ def test_credit_offer_create(self):
1130
1151
"min_deal_amount" : 1000 ,
1131
1152
"enabled" : False ,
1132
1153
"auto_disable_time" : "2024-01-01T00:00:00" ,
1133
- "acceptable_collateral" :
1134
- [ [
1135
- "1.3.5589" ,
1136
- {
1137
- "base" : {
1138
- "amount" : 1 , "asset_id" : "1.3.0"
1154
+ "acceptable_collateral" : [
1155
+ [
1156
+ "1.3.5589" ,
1157
+ {
1158
+ "base" : {"amount" : 1 , "asset_id" : "1.3.0" },
1159
+ "quote" : { " amount" : 250000 , "asset_id" : "1.3.5589" },
1139
1160
},
1140
- "quote" : {
1141
- "amount" : 250000 , "asset_id" : "1.3.5589"
1142
- }
1143
- }
1144
- ]],
1145
- "acceptable_borrowers" :
1146
- [
1147
- ["1.2.100" , 1000 ]
1161
+ ]
1148
1162
],
1163
+ "acceptable_borrowers" : [["1.2.100" , 1000 ]],
1149
1164
"extensions" : [],
1150
1165
}
1151
1166
)
1152
- self .cm = ()
1167
+ self .cm = (
1168
+ "f68585abf4dce7c8045701450000000000000000007b001027"
1169
+ "00000000000001000000c0a80000e803000000000000008000"
1170
+ "926501d52b01000000000000000090d0030000000000d52b01"
1171
+ "64e80300000000000000000120107ea7f48037771b8243c5c9"
1172
+ "a83ac3534128dbd1c47c4cf8bf8108e9a1bacede2d4e5f4254"
1173
+ "2d298ece03008c3d5be75716338165e9adc8c1ebc245d70429"
1174
+ "6df3"
1175
+ )
1153
1176
self .doit (1 )
1154
1177
1155
-
1156
1178
def test_credit_offer_delete (self ):
1157
1179
self .op = operations .Credit_offer_delete (
1158
1180
** {
@@ -1162,10 +1184,14 @@ def test_credit_offer_delete(self):
1162
1184
"extensions" : [],
1163
1185
}
1164
1186
)
1165
- self .cm = ('f68585abf4dce7c8045701460000000000000000007b010000012042aed7548e971617836c55d55c57b5ecd15e2ef8ed1cdf56c380891ce10e2aaa743e3665de606a7833145a1a2dbe5b60870396972e9e5c803040ee4cec8a8772' )
1187
+ self .cm = (
1188
+ "f68585abf4dce7c8045701460000000000000000007b0100000"
1189
+ "12042aed7548e971617836c55d55c57b5ecd15e2ef8ed1cdf56"
1190
+ "c380891ce10e2aaa743e3665de606a7833145a1a2dbe5b60870"
1191
+ "396972e9e5c803040ee4cec8a8772"
1192
+ )
1166
1193
self .doit ()
1167
1194
1168
-
1169
1195
def test_credit_offer_update (self ):
1170
1196
self .op = operations .Credit_offer_update (
1171
1197
** {
@@ -1178,29 +1204,30 @@ def test_credit_offer_update(self):
1178
1204
"min_deal_amount" : 10 ,
1179
1205
"enabled" : True ,
1180
1206
"auto_disable_time" : "2024-01-01T00:00:00" ,
1181
- "acceptable_collateral" :
1182
- [ [
1183
- "1.3.5589" ,
1184
- {
1185
- "base" : {
1186
- "amount" : 1 , "asset_id" : "1.3.0"
1207
+ "acceptable_collateral" : [
1208
+ [
1209
+ "1.3.5589" ,
1210
+ {
1211
+ "base" : {"amount" : 1 , "asset_id" : "1.3.0" },
1212
+ "quote" : { " amount" : 250000 , "asset_id" : "1.3.5589" },
1187
1213
},
1188
- "quote" : {
1189
- "amount" : 250000 , "asset_id" : "1.3.5589"
1190
- }
1191
- }
1192
- ]],
1193
- "acceptable_borrowers" :
1194
- [
1195
- ["1.2.100" , 1000 ]
1214
+ ]
1196
1215
],
1216
+ "acceptable_borrowers" : [["1.2.100" , 1000 ]],
1197
1217
"extensions" : [],
1198
1218
}
1199
1219
)
1200
- self .cm = ()
1220
+ self .cm = (
1221
+ "f68585abf4dce7c8045701470000000000000000007b010100"
1222
+ "0000000000000000010100000001e8030000010a0000000000"
1223
+ "0000010101800092650101d52b01000000000000000090d003"
1224
+ "0000000000d52b010164e8030000000000000000012064575b"
1225
+ "5fd2347411a643c54a2aaf2550c0c5653334ec81ca28a1e68f"
1226
+ "fd7e7fd07748121135e01947ae317e3b7ae9263149b96e9630"
1227
+ "1b16571984b94f7c72ebd9"
1228
+ )
1201
1229
self .doit (1 )
1202
1230
1203
-
1204
1231
def test_credit_offer_accept (self ):
1205
1232
self .op = operations .Credit_offer_accept (
1206
1233
** {
@@ -1214,10 +1241,15 @@ def test_credit_offer_accept(self):
1214
1241
"extensions" : [],
1215
1242
}
1216
1243
)
1217
- self .cm = ('f68585abf4dce7c8045701480000000000000000007b0100000000000000000000000000000000000001000000e8030000000001201dda600d9efc172ee7e0ca6a2b1279709184d0bb0960afd93b49f60f8d90caed6b0f84de19ee54d7434ee11ec0af1f45415f4b024adbf0ca59a9e167eab3901b' )
1244
+ self .cm = (
1245
+ "f68585abf4dce7c8045701480000000000000000007b0100000"
1246
+ "000000000000000000000000000000001000000e80300000000"
1247
+ "01201dda600d9efc172ee7e0ca6a2b1279709184d0bb0960afd"
1248
+ "93b49f60f8d90caed6b0f84de19ee54d7434ee11ec0af1f4541"
1249
+ "5f4b024adbf0ca59a9e167eab3901b"
1250
+ )
1218
1251
self .doit ()
1219
1252
1220
-
1221
1253
def test_credit_deal_repay (self ):
1222
1254
self .op = operations .Credit_deal_repay (
1223
1255
** {
@@ -1229,10 +1261,15 @@ def test_credit_deal_repay(self):
1229
1261
"extensions" : [],
1230
1262
}
1231
1263
)
1232
- self .cm = ('f68585abf4dce7c8045701490000000000000000007bb412000000000000000000000000000000000000000001203ba717f69b6ed214ef1a105bda7756149cee25c0c92c48a7f2d59dee88997cec3f9254df2bd2476cf2df16b10ebca0937f8daf2eecccfb8848e4faed9b8c0df7' )
1264
+ self .cm = (
1265
+ "f68585abf4dce7c8045701490000000000000000007bb412000"
1266
+ "000000000000000000000000000000000000001203ba717f69b"
1267
+ "6ed214ef1a105bda7756149cee25c0c92c48a7f2d59dee88997"
1268
+ "cec3f9254df2bd2476cf2df16b10ebca0937f8daf2eecccfb88"
1269
+ "48e4faed9b8c0df7"
1270
+ )
1233
1271
self .doit ()
1234
1272
1235
-
1236
1273
def test_credit_deal_expired (self ):
1237
1274
self .op = operations .Credit_deal_expired (
1238
1275
** {
@@ -1246,10 +1283,15 @@ def test_credit_deal_expired(self):
1246
1283
"fee_rate" : 1 ,
1247
1284
}
1248
1285
)
1249
- self .cm = ('f68585abf4dce7c80457014a000000000000000000b412017b7b000000000000000000000000000000000000010000000001207e5770f0fae74fc78bebbe5267583a824999d6356698ebce0a25e4a468bd3e356ca10920e3c4301537bd02205e63617546a5d8eded230655d170529801838a3f' )
1286
+ self .cm = (
1287
+ "f68585abf4dce7c80457014a000000000000000000b412017b7"
1288
+ "b00000000000000000000000000000000000001000000000120"
1289
+ "7e5770f0fae74fc78bebbe5267583a824999d6356698ebce0a2"
1290
+ "5e4a468bd3e356ca10920e3c4301537bd02205e63617546a5d8"
1291
+ "eded230655d170529801838a3f"
1292
+ )
1250
1293
self .doit ()
1251
1294
1252
-
1253
1295
def compareConstructedTX (self ):
1254
1296
self .maxDiff = None
1255
1297
self .op = operations .Call_order_update (
@@ -1282,4 +1324,3 @@ def compareConstructedTX(self):
1282
1324
print ("ist: %s" % txWire [:- 130 ])
1283
1325
print (txWire [:- 130 ] == self .cm [:- 130 ])
1284
1326
self .assertEqual (self .cm [:- 130 ], txWire [:- 130 ])
1285
-
0 commit comments