Skip to content

Commit

Permalink
v1.6 (#5)
Browse files Browse the repository at this point in the history
- update ICDexTypes
  • Loading branch information
iclighthouse authored Jan 14, 2024
1 parent 36657d8 commit eb12d0e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ICDexTypes.mo
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ module {
};
public type TokenSymbol = Text;
public type TokenInfo = (Principal, TokenSymbol, TokenStd);
//type OrderType = { #Make; #Take; };
public type OperationType = {
#AddLiquidity;
#RemoveLiquidity;
Expand Down Expand Up @@ -163,11 +162,12 @@ module {
public type ListPage = Nat;
public type ListSize = Nat;
public type Self = actor {
//create : shared (_sa: ?Sa) -> async (Text, Nat); // (TxAccount, Nonce)
getTxAccount : shared query (_account: Address) -> async ({owner: Principal; subaccount: ?Blob}, Text, Nonce, Txid); // (ICRC1.Account, TxAccount, Nonce, Txid)
trade : shared (_order: OrderPrice, _orderType: OrderType, _expiration: ?PeriodNs, _nonce: ?Nonce, _sa: ?Sa, _data: ?Data) -> async TradingResult;
trade_b : shared (_order: OrderPrice, _orderType: OrderType, _expiration: ?PeriodNs, _nonce: ?Nonce, _sa: ?Sa, _data: ?Data, _brokerage: ?{broker: Principal; rate: Float}) -> async TradingResult;
tradeMKT : shared (_token: DebitToken, _value: Amount, _nonce: ?Nonce, _sa: ?Sa, _data: ?Data) -> async TradingResult;
tradeCore : shared (_order: OrderPrice, _orderType: OrderType, _expiration: ?PeriodNs, _nonce: ?Nonce, _sa: ?Sa, _data: ?Data,
_brokerage: ?{broker: Principal; rate: Float}, _quickly: ?Bool) -> async TradingResult;
trade : shared (_order: OrderPrice, _orderType: OrderType, _expiration: ?PeriodNs, _nonce: ?Nonce, _sa: ?Sa, _data: ?Data) -> async TradingResult; // @deprecated: This method will be deprecated
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
tradeMKT : shared (_token: DebitToken, _value: Amount, _nonce: ?Nonce, _sa: ?Sa, _data: ?Data) -> async TradingResult;// @deprecated: This method will be deprecated
tradeMKT_b : shared (_token: DebitToken, _value: Amount, _limitPrice: ?Nat, _nonce: ?Nonce, _sa: ?Sa, _data: ?Data, _brokerage: ?{broker: Principal; rate: Float}) -> async TradingResult;
cancel : shared (_nonce: Nonce, _sa: ?Sa) -> async ();
cancelByTxid : shared (_txid: Txid, _sa: ?Sa) -> async ();
Expand Down

0 comments on commit eb12d0e

Please sign in to comment.