@evedex/exchange-crypto 1.0.14 → 1.0.16
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/cjs/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare function signAuth(signer: WalletClient, payload: AuthPayload): Pr
|
|
|
22
22
|
export interface NormalizeLimitOrder extends CreateBaseOrder, NetworkChain {
|
|
23
23
|
quantity: string;
|
|
24
24
|
limitPrice: string;
|
|
25
|
+
postOnly?: "yes";
|
|
25
26
|
}
|
|
26
27
|
export interface SignedLimitOrder extends NormalizeLimitOrder, SignedPayload {
|
|
27
28
|
quantity: string;
|
package/dist/cjs/index.js
CHANGED
|
@@ -118,7 +118,7 @@ function signLimitOrder(signer, order) {
|
|
|
118
118
|
chainId,
|
|
119
119
|
};
|
|
120
120
|
const signature = yield signer.signTypedData((0, crypto_1.getDomainData)(chainId), crypto_1.EIP721Schemas.createLimitOrder, Object.assign(Object.assign({}, normalize), { quantity: (0, crypto_1.toEthNumber)(normalize.quantity), limitPrice: (0, crypto_1.toEthNumber)(normalize.limitPrice) }));
|
|
121
|
-
return Object.assign(Object.assign({}, normalize), { signature: signer.serializeSignature(signature) });
|
|
121
|
+
return Object.assign(Object.assign(Object.assign({}, normalize), (order.postOnly && { postOnly: "yes" })), { signature: signer.serializeSignature(signature) });
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
function signMarketOrder(signer, order) {
|
|
@@ -30,6 +30,7 @@ export interface CreateBaseOrder {
|
|
|
30
30
|
export interface LimitOrder extends CreateBaseOrder {
|
|
31
31
|
quantity: Big.BigSource;
|
|
32
32
|
limitPrice: Big.BigSource;
|
|
33
|
+
postOnly: boolean;
|
|
33
34
|
}
|
|
34
35
|
export interface MarketOrder extends CreateBaseOrder {
|
|
35
36
|
timeInForce: TimeInForce;
|
package/dist/mjs/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare function signAuth(signer: WalletClient, payload: AuthPayload): Pr
|
|
|
22
22
|
export interface NormalizeLimitOrder extends CreateBaseOrder, NetworkChain {
|
|
23
23
|
quantity: string;
|
|
24
24
|
limitPrice: string;
|
|
25
|
+
postOnly?: "yes";
|
|
25
26
|
}
|
|
26
27
|
export interface SignedLimitOrder extends NormalizeLimitOrder, SignedPayload {
|
|
27
28
|
quantity: string;
|
package/dist/mjs/index.js
CHANGED
|
@@ -30,6 +30,7 @@ export interface CreateBaseOrder {
|
|
|
30
30
|
export interface LimitOrder extends CreateBaseOrder {
|
|
31
31
|
quantity: Big.BigSource;
|
|
32
32
|
limitPrice: Big.BigSource;
|
|
33
|
+
postOnly: boolean;
|
|
33
34
|
}
|
|
34
35
|
export interface MarketOrder extends CreateBaseOrder {
|
|
35
36
|
timeInForce: TimeInForce;
|