@triadxyz/triad-protocol 2.1.0-beta → 2.1.1-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/trade.d.ts
CHANGED
|
@@ -2481,10 +2481,14 @@
|
|
|
2481
2481
|
"name": "payout_fee",
|
|
2482
2482
|
"type": "u16"
|
|
2483
2483
|
},
|
|
2484
|
+
{
|
|
2485
|
+
"name": "version",
|
|
2486
|
+
"type": "u64"
|
|
2487
|
+
},
|
|
2484
2488
|
{
|
|
2485
2489
|
"name": "padding",
|
|
2486
2490
|
"type": {
|
|
2487
|
-
"array": ["u8",
|
|
2491
|
+
"array": ["u8", 80]
|
|
2488
2492
|
}
|
|
2489
2493
|
}
|
|
2490
2494
|
]
|
|
@@ -2551,10 +2555,8 @@
|
|
|
2551
2555
|
"type": "u64"
|
|
2552
2556
|
},
|
|
2553
2557
|
{
|
|
2554
|
-
"name": "
|
|
2555
|
-
"type":
|
|
2556
|
-
"array": ["u8", 8]
|
|
2557
|
-
}
|
|
2558
|
+
"name": "version",
|
|
2559
|
+
"type": "u64"
|
|
2558
2560
|
},
|
|
2559
2561
|
{
|
|
2560
2562
|
"name": "total_shares",
|
package/dist/types/trade.d.ts
CHANGED
|
@@ -3202,10 +3202,14 @@ export type TriadProtocol = {
|
|
|
3202
3202
|
name: 'payoutFee';
|
|
3203
3203
|
type: 'u16';
|
|
3204
3204
|
},
|
|
3205
|
+
{
|
|
3206
|
+
name: 'version';
|
|
3207
|
+
type: 'u64';
|
|
3208
|
+
},
|
|
3205
3209
|
{
|
|
3206
3210
|
name: 'padding';
|
|
3207
3211
|
type: {
|
|
3208
|
-
array: ['u8',
|
|
3212
|
+
array: ['u8', 80];
|
|
3209
3213
|
};
|
|
3210
3214
|
}
|
|
3211
3215
|
];
|
|
@@ -3272,10 +3276,8 @@ export type TriadProtocol = {
|
|
|
3272
3276
|
type: 'u64';
|
|
3273
3277
|
},
|
|
3274
3278
|
{
|
|
3275
|
-
name: '
|
|
3276
|
-
type:
|
|
3277
|
-
array: ['u8', 8];
|
|
3278
|
-
};
|
|
3279
|
+
name: 'version';
|
|
3280
|
+
type: 'u64';
|
|
3279
3281
|
},
|
|
3280
3282
|
{
|
|
3281
3283
|
name: 'totalShares';
|
package/dist/utils/helpers.js
CHANGED
|
@@ -83,7 +83,8 @@ const formatMarket = (account, address) => {
|
|
|
83
83
|
? account.marketLiquidityAtStart.toString()
|
|
84
84
|
: '0',
|
|
85
85
|
payoutFee: account.payoutFee,
|
|
86
|
-
customer: account.customerId === 0 ? 'Triad' : account.customerId.toString()
|
|
86
|
+
customer: account.customerId === 0 ? 'Triad' : account.customerId.toString(),
|
|
87
|
+
version: account.version.toNumber()
|
|
87
88
|
};
|
|
88
89
|
};
|
|
89
90
|
exports.formatMarket = formatMarket;
|