@monolythium/core-sdk 0.3.8 → 0.3.9
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/index.cjs +29 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +27 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6924,7 +6924,13 @@ var CLOB_SELECTORS = {
|
|
|
6924
6924
|
*/
|
|
6925
6925
|
placeMarketOrderEx: "0xa6f092f0",
|
|
6926
6926
|
/** `cancelOrder(bytes32)` */
|
|
6927
|
-
cancelOrder: "0x7489ec23"
|
|
6927
|
+
cancelOrder: "0x7489ec23",
|
|
6928
|
+
/** `setMinNotional(bytes32,bytes32,uint256)` — foundation-authorized. */
|
|
6929
|
+
setMinNotional: "0x395dc48f",
|
|
6930
|
+
/** `setTickSize(bytes32,bytes32,uint256)` — foundation-authorized per-market grid tune. */
|
|
6931
|
+
setTickSize: "0x10666f0b",
|
|
6932
|
+
/** `setLotSize(bytes32,bytes32,uint256)` — foundation-authorized per-market grid tune. */
|
|
6933
|
+
setLotSize: "0x9909be80"
|
|
6928
6934
|
};
|
|
6929
6935
|
var MarketActionError = class extends Error {
|
|
6930
6936
|
constructor(message) {
|
|
@@ -7022,6 +7028,25 @@ function encodeCancelOrderCalldata(args) {
|
|
|
7022
7028
|
)
|
|
7023
7029
|
);
|
|
7024
7030
|
}
|
|
7031
|
+
function encodeMarketGridTuneCalldata(selector, label, args) {
|
|
7032
|
+
return bytesToHex2(
|
|
7033
|
+
concatBytes2(
|
|
7034
|
+
hexToBytes2(selector, `${label} selector`),
|
|
7035
|
+
bytes32FromHex(args.baseTokenId, "baseTokenId"),
|
|
7036
|
+
bytes32FromHex(args.quoteTokenId, "quoteTokenId"),
|
|
7037
|
+
uint256Word2(BigInt(args.newValue), "newValue")
|
|
7038
|
+
)
|
|
7039
|
+
);
|
|
7040
|
+
}
|
|
7041
|
+
function encodeSetMinNotionalCalldata(args) {
|
|
7042
|
+
return encodeMarketGridTuneCalldata(CLOB_SELECTORS.setMinNotional, "setMinNotional", args);
|
|
7043
|
+
}
|
|
7044
|
+
function encodeSetTickSizeCalldata(args) {
|
|
7045
|
+
return encodeMarketGridTuneCalldata(CLOB_SELECTORS.setTickSize, "setTickSize", args);
|
|
7046
|
+
}
|
|
7047
|
+
function encodeSetLotSizeCalldata(args) {
|
|
7048
|
+
return encodeMarketGridTuneCalldata(CLOB_SELECTORS.setLotSize, "setLotSize", args);
|
|
7049
|
+
}
|
|
7025
7050
|
function encodeNativeSpotLimitOrderCall(args) {
|
|
7026
7051
|
const w = new BincodeWriter();
|
|
7027
7052
|
w.enumVariant(0);
|
|
@@ -8295,8 +8320,11 @@ exports.encodeReportServiceProbeCalldata = encodeReportServiceProbeCalldata;
|
|
|
8295
8320
|
exports.encodeSetAutoCompoundCalldata = encodeSetAutoCompoundCalldata;
|
|
8296
8321
|
exports.encodeSetBridgeResumeCooldownCalldata = encodeSetBridgeResumeCooldownCalldata;
|
|
8297
8322
|
exports.encodeSetBridgeRouteFinalityCalldata = encodeSetBridgeRouteFinalityCalldata;
|
|
8323
|
+
exports.encodeSetLotSizeCalldata = encodeSetLotSizeCalldata;
|
|
8324
|
+
exports.encodeSetMinNotionalCalldata = encodeSetMinNotionalCalldata;
|
|
8298
8325
|
exports.encodeSetPolicyCalldata = encodeSetPolicyCalldata;
|
|
8299
8326
|
exports.encodeSetPolicyClaimCalldata = encodeSetPolicyClaimCalldata;
|
|
8327
|
+
exports.encodeSetTickSizeCalldata = encodeSetTickSizeCalldata;
|
|
8300
8328
|
exports.encodeUndelegateCalldata = encodeUndelegateCalldata;
|
|
8301
8329
|
exports.exportBridgeRouteCatalogueJson = exportBridgeRouteCatalogueJson;
|
|
8302
8330
|
exports.fetchChainInfoLatest = fetchChainInfoLatest;
|