Skip to content

Commit eb12d0e

Browse files
authored
v1.6 (#5)
- update ICDexTypes
1 parent 36657d8 commit eb12d0e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ICDexTypes.mo

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ module {
3131
};
3232
public type TokenSymbol = Text;
3333
public type TokenInfo = (Principal, TokenSymbol, TokenStd);
34-
//type OrderType = { #Make; #Take; };
3534
public type OperationType = {
3635
#AddLiquidity;
3736
#RemoveLiquidity;
@@ -163,11 +162,12 @@ module {
163162
public type ListPage = Nat;
164163
public type ListSize = Nat;
165164
public type Self = actor {
166-
//create : shared (_sa: ?Sa) -> async (Text, Nat); // (TxAccount, Nonce)
167165
getTxAccount : shared query (_account: Address) -> async ({owner: Principal; subaccount: ?Blob}, Text, Nonce, Txid); // (ICRC1.Account, TxAccount, Nonce, Txid)
168-
trade : shared (_order: OrderPrice, _orderType: OrderType, _expiration: ?PeriodNs, _nonce: ?Nonce, _sa: ?Sa, _data: ?Data) -> async TradingResult;
169-
trade_b : shared (_order: OrderPrice, _orderType: OrderType, _expiration: ?PeriodNs, _nonce: ?Nonce, _sa: ?Sa, _data: ?Data, _brokerage: ?{broker: Principal; rate: Float}) -> async TradingResult;
170-
tradeMKT : shared (_token: DebitToken, _value: Amount, _nonce: ?Nonce, _sa: ?Sa, _data: ?Data) -> async TradingResult;
166+
tradeCore : shared (_order: OrderPrice, _orderType: OrderType, _expiration: ?PeriodNs, _nonce: ?Nonce, _sa: ?Sa, _data: ?Data,
167+
_brokerage: ?{broker: Principal; rate: Float}, _quickly: ?Bool) -> async TradingResult;
168+
trade : shared (_order: OrderPrice, _orderType: OrderType, _expiration: ?PeriodNs, _nonce: ?Nonce, _sa: ?Sa, _data: ?Data) -> async TradingResult; // @deprecated: This method will be deprecated
169+
trade_b : shared (_order: OrderPrice, _orderType: OrderType, _expiration: ?PeriodNs, _nonce: ?Nonce, _sa: ?Sa, _data: ?Data, _brokerage: ?{broker: Principal; rate: Float}) -> async TradingResult; // @deprecated: This method will be deprecated
170+
tradeMKT : shared (_token: DebitToken, _value: Amount, _nonce: ?Nonce, _sa: ?Sa, _data: ?Data) -> async TradingResult;// @deprecated: This method will be deprecated
171171
tradeMKT_b : shared (_token: DebitToken, _value: Amount, _limitPrice: ?Nat, _nonce: ?Nonce, _sa: ?Sa, _data: ?Data, _brokerage: ?{broker: Principal; rate: Float}) -> async TradingResult;
172172
cancel : shared (_nonce: Nonce, _sa: ?Sa) -> async ();
173173
cancelByTxid : shared (_txid: Txid, _sa: ?Sa) -> async ();

0 commit comments

Comments
 (0)