@polymarket/clob-client 1.0.33 → 1.0.37
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/package.json +1 -1
- package/dist/client.d.ts +0 -46
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -388
- package/dist/client.js.map +0 -1
- package/dist/constants.d.ts +0 -2
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -5
- package/dist/constants.js.map +0 -1
- package/dist/endpoints.d.ts +0 -17
- package/dist/endpoints.d.ts.map +0 -1
- package/dist/endpoints.js +0 -20
- package/dist/endpoints.js.map +0 -1
- package/dist/errors.d.ts +0 -3
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -6
- package/dist/errors.js.map +0 -1
- package/dist/headers/index.d.ts +0 -6
- package/dist/headers/index.d.ts.map +0 -1
- package/dist/headers/index.js +0 -89
- package/dist/headers/index.js.map +0 -1
- package/dist/http_helpers/index.d.ts +0 -10
- package/dist/http_helpers/index.d.ts.map +0 -1
- package/dist/http_helpers/index.js +0 -107
- package/dist/http_helpers/index.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -15
- package/dist/index.js.map +0 -1
- package/dist/order-builder/builder.d.ts +0 -19
- package/dist/order-builder/builder.d.ts.map +0 -1
- package/dist/order-builder/builder.js +0 -71
- package/dist/order-builder/builder.js.map +0 -1
- package/dist/order-builder/constants.d.ts +0 -3
- package/dist/order-builder/constants.d.ts.map +0 -1
- package/dist/order-builder/constants.js +0 -6
- package/dist/order-builder/constants.js.map +0 -1
- package/dist/order-builder/helpers.d.ts +0 -15
- package/dist/order-builder/helpers.d.ts.map +0 -1
- package/dist/order-builder/helpers.js +0 -325
- package/dist/order-builder/helpers.js.map +0 -1
- package/dist/order-builder/index.d.ts +0 -3
- package/dist/order-builder/index.d.ts.map +0 -1
- package/dist/order-builder/index.js +0 -15
- package/dist/order-builder/index.js.map +0 -1
- package/dist/order-builder/utils.d.ts +0 -4
- package/dist/order-builder/utils.d.ts.map +0 -1
- package/dist/order-builder/utils.js +0 -50
- package/dist/order-builder/utils.js.map +0 -1
- package/dist/signing/constants.d.ts +0 -15
- package/dist/signing/constants.d.ts.map +0 -1
- package/dist/signing/constants.js +0 -19
- package/dist/signing/constants.js.map +0 -1
- package/dist/signing/eip712.d.ts +0 -10
- package/dist/signing/eip712.d.ts.map +0 -1
- package/dist/signing/eip712.js +0 -84
- package/dist/signing/eip712.js.map +0 -1
- package/dist/signing/hmac.d.ts +0 -10
- package/dist/signing/hmac.d.ts.map +0 -1
- package/dist/signing/hmac.js +0 -69
- package/dist/signing/hmac.js.map +0 -1
- package/dist/signing/index.d.ts +0 -3
- package/dist/signing/index.d.ts.map +0 -1
- package/dist/signing/index.js +0 -15
- package/dist/signing/index.js.map +0 -1
- package/dist/types.d.ts +0 -122
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -20
- package/dist/types.js.map +0 -1
- package/dist/utilities.d.ts +0 -6
- package/dist/utilities.d.ts.map +0 -1
- package/dist/utilities.js +0 -75
- package/dist/utilities.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/order-builder/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uDAYiC;AACjC,iCAAgC;AAChC,kCAA6G;AAC7G,yCAAoF;AACpF,iCAA2C;AAE3C;;GAEG;AACU,QAAA,2BAA2B,GAAG,UACvC,MAAc,EACd,KAAa,EACb,OAAe,EACf,QAAgB,EAChB,QAAgB,EAChB,UAAkB,EAClB,WAAmB,EACnB,aAA4B,EAC5B,SAAyB;;;QAWnB,KAAK,GAAG,SAAS,CAAC,KAAe,CAAC;QAExC,IAAI,SAAS,CAAC,IAAI,KAAK,YAAI,CAAC,GAAG,EAAE;YAC7B,UAAU,GAAG,UAAU,CAAC;YACxB,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U,EACV,WAAW,EACX,aAAa,EACb,eAAe,CAClB,EAAA;;gBATK,eAAe,GAAG,SASvB;gBAEyB,qBAAM,gBAAgB,CAAC,SAAS,EAAE,eAAe,CAAC,EAAA;;gBAAtE,iBAAiB,GAAG,SAAkD;gBAC5E,sBAAO,iBAAiB,EAAC;;;KAC5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/order-builder/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./builder"), exports);
|
|
14
|
-
__exportStar(require("./utils"), exports);
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/order-builder/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA0B;AAC1B,0CAAwB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/order-builder/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,eAAO,MAAM,gBAAgB,WAAkB,MAAM,GAAG,aAAa,WAAW,MAAM,KAAG,OAAO,CAAC,aAAa,CAK7G,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.getJsonRpcSigner = void 0;
|
|
40
|
-
var order_utils_1 = require("@polymarket/order-utils");
|
|
41
|
-
var wallet_1 = require("@ethersproject/wallet");
|
|
42
|
-
exports.getJsonRpcSigner = function (signer, chainID) { return __awaiter(void 0, void 0, void 0, function () {
|
|
43
|
-
return __generator(this, function (_a) {
|
|
44
|
-
if (signer instanceof wallet_1.Wallet) {
|
|
45
|
-
return [2 /*return*/, order_utils_1.getSignerFromWallet(signer, chainID, signer.provider)];
|
|
46
|
-
}
|
|
47
|
-
return [2 /*return*/, signer];
|
|
48
|
-
});
|
|
49
|
-
}); };
|
|
50
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/order-builder/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAA8D;AAE9D,gDAA+C;AAElC,QAAA,gBAAgB,GAAG,UAAO,MAA8B,EAAE,OAAe;;QAClF,IAAI,MAAM,YAAY,eAAM,EAAE;YAC1B,sBAAO,iCAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,QAA2B,CAAC,EAAC;SACnF;QACD,sBAAO,MAAM,EAAC;;KACjB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const CLOB_DOMAIN_NAME = "ClobAuthDomain";
|
|
2
|
-
export declare const CLOB_VERSION = "1";
|
|
3
|
-
export declare const MSG_TO_SIGN = "This message attests that I control the given wallet";
|
|
4
|
-
export declare const CLOB_DOMAIN: {
|
|
5
|
-
name: string;
|
|
6
|
-
version: string;
|
|
7
|
-
chainId: number;
|
|
8
|
-
};
|
|
9
|
-
export declare const CLOB_TYPES: {
|
|
10
|
-
ClobAuth: {
|
|
11
|
-
name: string;
|
|
12
|
-
type: string;
|
|
13
|
-
}[];
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/signing/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,mBAAmB,CAAC;AACjD,eAAO,MAAM,YAAY,MAAM,CAAC;AAChC,eAAO,MAAM,WAAW,yDAAyD,CAAC;AAElF,eAAO,MAAM,WAAW;;;;CAIvB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;CAMtB,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CLOB_TYPES = exports.CLOB_DOMAIN = exports.MSG_TO_SIGN = exports.CLOB_VERSION = exports.CLOB_DOMAIN_NAME = void 0;
|
|
4
|
-
exports.CLOB_DOMAIN_NAME = "ClobAuthDomain";
|
|
5
|
-
exports.CLOB_VERSION = "1";
|
|
6
|
-
exports.MSG_TO_SIGN = "This message attests that I control the given wallet";
|
|
7
|
-
exports.CLOB_DOMAIN = {
|
|
8
|
-
name: exports.CLOB_DOMAIN_NAME,
|
|
9
|
-
version: exports.CLOB_VERSION,
|
|
10
|
-
chainId: 1,
|
|
11
|
-
};
|
|
12
|
-
exports.CLOB_TYPES = {
|
|
13
|
-
ClobAuth: [
|
|
14
|
-
{ name: "address", type: "address" },
|
|
15
|
-
{ name: "timestamp", type: "string" },
|
|
16
|
-
{ name: "message", type: "string" },
|
|
17
|
-
],
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/signing/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG,gBAAgB,CAAC;AACpC,QAAA,YAAY,GAAG,GAAG,CAAC;AACnB,QAAA,WAAW,GAAG,sDAAsD,CAAC;AAErE,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,wBAAgB;IACtB,OAAO,EAAE,oBAAY;IACrB,OAAO,EAAE,CAAC;CACb,CAAC;AAEW,QAAA,UAAU,GAAG;IACtB,QAAQ,EAAE;QACN,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;QACpC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;QACrC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;KACtC;CACJ,CAAC"}
|
package/dist/signing/eip712.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Wallet } from "@ethersproject/wallet";
|
|
2
|
-
import { JsonRpcSigner } from "@ethersproject/providers";
|
|
3
|
-
/**
|
|
4
|
-
* Builds the canonical Polymarket CLOB EIP712 signature
|
|
5
|
-
* @param signer
|
|
6
|
-
* @param ts
|
|
7
|
-
* @returns string
|
|
8
|
-
*/
|
|
9
|
-
export declare const buildClobEip712Signature: (signer: Wallet | JsonRpcSigner, timestamp: number, nonce: number) => Promise<string>;
|
|
10
|
-
//# sourceMappingURL=eip712.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eip712.d.ts","sourceRoot":"","sources":["../../src/signing/eip712.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAGzD;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,WACzB,MAAM,GAAG,aAAa,aACnB,MAAM,SACV,MAAM,KACd,OAAO,CAAC,MAAM,CA4BhB,CAAC"}
|
package/dist/signing/eip712.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.buildClobEip712Signature = void 0;
|
|
40
|
-
var constants_1 = require("./constants");
|
|
41
|
-
/**
|
|
42
|
-
* Builds the canonical Polymarket CLOB EIP712 signature
|
|
43
|
-
* @param signer
|
|
44
|
-
* @param ts
|
|
45
|
-
* @returns string
|
|
46
|
-
*/
|
|
47
|
-
exports.buildClobEip712Signature = function (signer, timestamp, nonce) { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
|
-
var address, chainID, ts, domain, types, value, sig;
|
|
49
|
-
return __generator(this, function (_a) {
|
|
50
|
-
switch (_a.label) {
|
|
51
|
-
case 0: return [4 /*yield*/, signer.getAddress()];
|
|
52
|
-
case 1:
|
|
53
|
-
address = _a.sent();
|
|
54
|
-
return [4 /*yield*/, signer.getChainId()];
|
|
55
|
-
case 2:
|
|
56
|
-
chainID = _a.sent();
|
|
57
|
-
ts = "" + timestamp;
|
|
58
|
-
domain = {
|
|
59
|
-
name: "ClobAuthDomain",
|
|
60
|
-
version: "1",
|
|
61
|
-
chainId: chainID,
|
|
62
|
-
};
|
|
63
|
-
types = {
|
|
64
|
-
ClobAuth: [
|
|
65
|
-
{ name: "address", type: "address" },
|
|
66
|
-
{ name: "timestamp", type: "string" },
|
|
67
|
-
{ name: "nonce", type: "uint256" },
|
|
68
|
-
{ name: "message", type: "string" },
|
|
69
|
-
],
|
|
70
|
-
};
|
|
71
|
-
value = {
|
|
72
|
-
address: address,
|
|
73
|
-
timestamp: ts,
|
|
74
|
-
nonce: nonce,
|
|
75
|
-
message: constants_1.MSG_TO_SIGN,
|
|
76
|
-
};
|
|
77
|
-
return [4 /*yield*/, signer._signTypedData(domain, types, value)];
|
|
78
|
-
case 3:
|
|
79
|
-
sig = _a.sent();
|
|
80
|
-
return [2 /*return*/, sig];
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}); };
|
|
84
|
-
//# sourceMappingURL=eip712.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eip712.js","sourceRoot":"","sources":["../../src/signing/eip712.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,yCAA0C;AAE1C;;;;;GAKG;AACU,QAAA,wBAAwB,GAAG,UACpC,MAA8B,EAC9B,SAAiB,EACjB,KAAa;;;;oBAEG,qBAAM,MAAM,CAAC,UAAU,EAAE,EAAA;;gBAAnC,OAAO,GAAG,SAAyB;gBACzB,qBAAM,MAAM,CAAC,UAAU,EAAE,EAAA;;gBAAnC,OAAO,GAAG,SAAyB;gBACnC,EAAE,GAAG,KAAG,SAAW,CAAC;gBAEpB,MAAM,GAAG;oBACX,IAAI,EAAE,gBAAgB;oBACtB,OAAO,EAAE,GAAG;oBACZ,OAAO,EAAE,OAAO;iBACnB,CAAC;gBAEI,KAAK,GAAG;oBACV,QAAQ,EAAE;wBACN,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;wBACpC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;wBACrC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;wBAClC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;qBACtC;iBACJ,CAAC;gBACI,KAAK,GAAG;oBACV,OAAO,SAAA;oBACP,SAAS,EAAE,EAAE;oBACb,KAAK,OAAA;oBACL,OAAO,EAAE,uBAAW;iBACvB,CAAC;gBAEU,qBAAM,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,EAAA;;gBAAvD,GAAG,GAAG,SAAiD;gBAC7D,sBAAO,GAAG,EAAC;;;KACd,CAAC"}
|
package/dist/signing/hmac.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Builds the canonical Polymarket CLOB HMAC signature
|
|
3
|
-
* @param signer
|
|
4
|
-
* @param key
|
|
5
|
-
* @param secret
|
|
6
|
-
* @param passphrase
|
|
7
|
-
* @returns string
|
|
8
|
-
*/
|
|
9
|
-
export declare const buildPolyHmacSignature: (secret: string, timestamp: number, method: string, requestPath: string, body?: string | undefined) => Promise<string>;
|
|
10
|
-
//# sourceMappingURL=hmac.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hmac.d.ts","sourceRoot":"","sources":["../../src/signing/hmac.ts"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,WACvB,MAAM,aACH,MAAM,UACT,MAAM,eACD,MAAM,gCAEpB,OAAO,CAAC,MAAM,CAchB,CAAC"}
|
package/dist/signing/hmac.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
-
};
|
|
41
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.buildPolyHmacSignature = void 0;
|
|
43
|
-
var crypto_1 = __importDefault(require("crypto"));
|
|
44
|
-
function replaceAll(s, search, replace) {
|
|
45
|
-
return s.split(search).join(replace);
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Builds the canonical Polymarket CLOB HMAC signature
|
|
49
|
-
* @param signer
|
|
50
|
-
* @param key
|
|
51
|
-
* @param secret
|
|
52
|
-
* @param passphrase
|
|
53
|
-
* @returns string
|
|
54
|
-
*/
|
|
55
|
-
exports.buildPolyHmacSignature = function (secret, timestamp, method, requestPath, body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
56
|
-
var message, base64Secret, hmac, sig, sigUrlSafe;
|
|
57
|
-
return __generator(this, function (_a) {
|
|
58
|
-
message = timestamp + method + requestPath;
|
|
59
|
-
if (body !== undefined) {
|
|
60
|
-
message += body;
|
|
61
|
-
}
|
|
62
|
-
base64Secret = Buffer.from(secret, "base64");
|
|
63
|
-
hmac = crypto_1.default.createHmac("sha256", base64Secret);
|
|
64
|
-
sig = hmac.update(message).digest("base64");
|
|
65
|
-
sigUrlSafe = replaceAll(replaceAll(sig, "+", "-"), "/", "_");
|
|
66
|
-
return [2 /*return*/, sigUrlSafe];
|
|
67
|
-
});
|
|
68
|
-
}); };
|
|
69
|
-
//# sourceMappingURL=hmac.js.map
|
package/dist/signing/hmac.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hmac.js","sourceRoot":"","sources":["../../src/signing/hmac.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA4B;AAE5B,SAAS,UAAU,CAAC,CAAS,EAAE,MAAc,EAAE,OAAe;IAC1D,OAAO,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACzC,CAAC;AAED;;;;;;;GAOG;AACU,QAAA,sBAAsB,GAAG,UAClC,MAAc,EACd,SAAiB,EACjB,MAAc,EACd,WAAmB,EACnB,IAAa;;;QAET,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,CAAC;QAC/C,IAAI,IAAI,KAAK,SAAS,EAAE;YACpB,OAAO,IAAI,IAAI,CAAC;SACnB;QACK,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAC7C,IAAI,GAAG,gBAAM,CAAC,UAAU,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QACjD,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAK5C,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QACnE,sBAAO,UAAU,EAAC;;KACrB,CAAC"}
|
package/dist/signing/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/signing/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
|
package/dist/signing/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./eip712"), exports);
|
|
14
|
-
__exportStar(require("./hmac"), exports);
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/signing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyB;AACzB,yCAAuB"}
|
package/dist/types.d.ts
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { TimeInForce } from "@polymarket/order-utils";
|
|
2
|
-
export * from "@polymarket/order-utils";
|
|
3
|
-
export interface ApiKeyCreds {
|
|
4
|
-
key: string;
|
|
5
|
-
secret: string;
|
|
6
|
-
passphrase: string;
|
|
7
|
-
}
|
|
8
|
-
export interface L2HeaderArgs {
|
|
9
|
-
method: string;
|
|
10
|
-
requestPath: string;
|
|
11
|
-
body?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface L1PolyHeader {
|
|
14
|
-
POLY_ADDRESS: string;
|
|
15
|
-
POLY_SIGNATURE: string;
|
|
16
|
-
POLY_TIMESTAMP: string;
|
|
17
|
-
POLY_NONCE: string;
|
|
18
|
-
}
|
|
19
|
-
export interface L2PolyHeader {
|
|
20
|
-
POLY_ADDRESS: string;
|
|
21
|
-
POLY_SIGNATURE: string;
|
|
22
|
-
POLY_TIMESTAMP: string;
|
|
23
|
-
POLY_API_KEY: string;
|
|
24
|
-
POLY_PASSPHRASE: string;
|
|
25
|
-
}
|
|
26
|
-
export declare enum Side {
|
|
27
|
-
BUY = "buy",
|
|
28
|
-
SELL = "sell"
|
|
29
|
-
}
|
|
30
|
-
export interface UserLimitOrder {
|
|
31
|
-
tokenID: string;
|
|
32
|
-
price: number;
|
|
33
|
-
size: number;
|
|
34
|
-
side: Side;
|
|
35
|
-
}
|
|
36
|
-
export interface UserMarketOrder {
|
|
37
|
-
tokenID: string;
|
|
38
|
-
size: number;
|
|
39
|
-
side: Side;
|
|
40
|
-
worstPrice?: number;
|
|
41
|
-
timeInForce?: TimeInForce;
|
|
42
|
-
}
|
|
43
|
-
export interface OrderPayload {
|
|
44
|
-
orderID: string;
|
|
45
|
-
}
|
|
46
|
-
export interface OrderCreationArgs {
|
|
47
|
-
chainID: number;
|
|
48
|
-
exchange: string;
|
|
49
|
-
executor: string;
|
|
50
|
-
signer: string;
|
|
51
|
-
maker: string;
|
|
52
|
-
makerAsset: string;
|
|
53
|
-
makerAmount: string;
|
|
54
|
-
makerAssetID?: string;
|
|
55
|
-
takerAsset: string;
|
|
56
|
-
takerAmount: string;
|
|
57
|
-
takerAssetID?: string;
|
|
58
|
-
signatureType: number;
|
|
59
|
-
}
|
|
60
|
-
export interface MarketOrderCreationArgs {
|
|
61
|
-
chainID: number;
|
|
62
|
-
exchange: string;
|
|
63
|
-
signer: string;
|
|
64
|
-
maker: string;
|
|
65
|
-
makerAsset: string;
|
|
66
|
-
makerAmount: string;
|
|
67
|
-
makerAssetID?: string;
|
|
68
|
-
takerAsset: string;
|
|
69
|
-
takerAssetID?: string;
|
|
70
|
-
signatureType: number;
|
|
71
|
-
minAmountReceived: string;
|
|
72
|
-
timeInForce: TimeInForce;
|
|
73
|
-
}
|
|
74
|
-
export interface ApiKeysResponse {
|
|
75
|
-
apiKeys: ApiKeyCreds[];
|
|
76
|
-
}
|
|
77
|
-
export interface OrderResponse {
|
|
78
|
-
success: boolean;
|
|
79
|
-
errorMsg: string;
|
|
80
|
-
orderID: string;
|
|
81
|
-
transactionHash: string;
|
|
82
|
-
status: string;
|
|
83
|
-
}
|
|
84
|
-
export interface Order {
|
|
85
|
-
orderID: string;
|
|
86
|
-
owner: string;
|
|
87
|
-
timestamp: string;
|
|
88
|
-
price: string;
|
|
89
|
-
size: string;
|
|
90
|
-
side: string;
|
|
91
|
-
tokenID: string;
|
|
92
|
-
}
|
|
93
|
-
export interface OpenOrdersResponse {
|
|
94
|
-
orders: Order[];
|
|
95
|
-
}
|
|
96
|
-
export interface FilterParams {
|
|
97
|
-
market?: string;
|
|
98
|
-
max?: number;
|
|
99
|
-
startTs?: number;
|
|
100
|
-
endTs?: number;
|
|
101
|
-
}
|
|
102
|
-
export interface Trade {
|
|
103
|
-
tradeID: string;
|
|
104
|
-
market: string;
|
|
105
|
-
timestamp: string;
|
|
106
|
-
marketOrderID: string;
|
|
107
|
-
limitOrderIDs: string[];
|
|
108
|
-
filledAmount: string;
|
|
109
|
-
side: string;
|
|
110
|
-
owner: string;
|
|
111
|
-
avgPrice: string;
|
|
112
|
-
}
|
|
113
|
-
export interface TradeHistory {
|
|
114
|
-
history: Trade[];
|
|
115
|
-
}
|
|
116
|
-
export interface OrderHistory {
|
|
117
|
-
history: Order[];
|
|
118
|
-
}
|
|
119
|
-
export declare type OptionalParams = {
|
|
120
|
-
[query: string]: string;
|
|
121
|
-
};
|
|
122
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,cAAc,yBAAyB,CAAC;AAExC,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,YAAY;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACtB;AAGD,MAAM,WAAW,YAAY;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;CAC3B;AAED,oBAAY,IAAI;IACZ,GAAG,QAAQ;IACX,IAAI,SAAS;CAChB;AAGD,MAAM,WAAW,cAAc;IAE3B,OAAO,EAAE,MAAM,CAAC;IAEhB,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,IAAI,CAAC;CACd;AAGD,MAAM,WAAW,eAAe;IAE5B,OAAO,EAAE,MAAM,CAAC;IAIhB,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,IAAI,CAAC;IAGX,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC5B;AAED,MAAM,W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,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,KAAK,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,KAAK;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IACzB,OAAO,EAAE,KAAK,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IACzB,OAAO,EAAE,KAAK,EAAE,CAAC;CACpB;AAED,oBAAY,cAAc,GAAG;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC"}
|
package/dist/types.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.Side = void 0;
|
|
14
|
-
__exportStar(require("@polymarket/order-utils"), exports);
|
|
15
|
-
var Side;
|
|
16
|
-
(function (Side) {
|
|
17
|
-
Side["BUY"] = "buy";
|
|
18
|
-
Side["SELL"] = "sell";
|
|
19
|
-
})(Side = exports.Side || (exports.Side = {}));
|
|
20
|
-
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAEA,0DAAwC;AA+BxC,IAAY,IAGX;AAHD,WAAY,IAAI;IACZ,mBAAW,CAAA;IACX,qBAAa,CAAA;AACjB,CAAC,EAHW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAGf"}
|
package/dist/utilities.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LimitOrderAndSignature, MarketOrderAndSignature } from "@polymarket/order-utils";
|
|
2
|
-
import { FilterParams } from "./types";
|
|
3
|
-
export declare const limitOrderToJson: (order: LimitOrderAndSignature) => any;
|
|
4
|
-
export declare const marketOrderToJson: (mktOrder: MarketOrderAndSignature) => any;
|
|
5
|
-
export declare const addQueryParamsToUrl: (baseUrl: string, params?: FilterParams | undefined) => string;
|
|
6
|
-
//# sourceMappingURL=utilities.d.ts.map
|
package/dist/utilities.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../src/utilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAO,MAAM,gBAAgB,UAAW,sBAAsB,KAAG,GAmBhE,CAAC;AAEF,eAAO,MAAM,iBAAiB,aAAc,uBAAuB,KAAG,GAiBrE,CAAC;AAgBF,eAAO,MAAM,mBAAmB,YAAa,MAAM,wCAA0B,MAkB5E,CAAC"}
|
package/dist/utilities.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addQueryParamsToUrl = exports.marketOrderToJson = exports.limitOrderToJson = void 0;
|
|
4
|
-
exports.limitOrderToJson = function (order) {
|
|
5
|
-
return {
|
|
6
|
-
order: {
|
|
7
|
-
salt: parseInt(order.order.salt, 10),
|
|
8
|
-
makerAsset: order.order.makerAsset,
|
|
9
|
-
takerAsset: order.order.takerAsset,
|
|
10
|
-
makerAssetData: order.order.makerAssetData,
|
|
11
|
-
takerAssetData: order.order.takerAssetData,
|
|
12
|
-
getMakerAmount: order.order.getMakerAmount,
|
|
13
|
-
getTakerAmount: order.order.getTakerAmount,
|
|
14
|
-
predicate: order.order.predicate,
|
|
15
|
-
permit: order.order.permit,
|
|
16
|
-
interaction: order.order.interaction,
|
|
17
|
-
signer: order.order.signer,
|
|
18
|
-
sigType: order.order.sigType,
|
|
19
|
-
},
|
|
20
|
-
signature: order.signature,
|
|
21
|
-
orderType: "limit",
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
exports.marketOrderToJson = function (mktOrder) {
|
|
25
|
-
return {
|
|
26
|
-
order: {
|
|
27
|
-
salt: parseInt(mktOrder.order.salt, 10),
|
|
28
|
-
maker: mktOrder.order.maker,
|
|
29
|
-
makerAsset: mktOrder.order.makerAsset,
|
|
30
|
-
makerAmount: mktOrder.order.makerAmount,
|
|
31
|
-
makerAssetID: mktOrder.order.makerAssetID,
|
|
32
|
-
takerAsset: mktOrder.order.takerAsset,
|
|
33
|
-
takerAssetID: mktOrder.order.takerAssetID,
|
|
34
|
-
signer: mktOrder.order.signer,
|
|
35
|
-
sigType: mktOrder.order.sigType,
|
|
36
|
-
},
|
|
37
|
-
signature: mktOrder.signature,
|
|
38
|
-
orderType: "market",
|
|
39
|
-
minAmountReceived: mktOrder.minAmountReceived,
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
var buildQueryParams = function (url, param, value) {
|
|
43
|
-
var urlWithParams = url;
|
|
44
|
-
var last = url.at(url.length - 1);
|
|
45
|
-
// Check the last char in the url string
|
|
46
|
-
// if ?, append the param directly: api.com?param=value
|
|
47
|
-
if (last === "?") {
|
|
48
|
-
urlWithParams = "" + urlWithParams + param + "=" + value;
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
// else append "&" then the param: api.com?param1=value1¶m2=value2
|
|
52
|
-
urlWithParams = urlWithParams + "&" + param + "=" + value;
|
|
53
|
-
}
|
|
54
|
-
return urlWithParams;
|
|
55
|
-
};
|
|
56
|
-
exports.addQueryParamsToUrl = function (baseUrl, params) {
|
|
57
|
-
var url = baseUrl;
|
|
58
|
-
if (params !== undefined) {
|
|
59
|
-
url = url + "?";
|
|
60
|
-
if (params.market !== undefined) {
|
|
61
|
-
url = buildQueryParams(url, "market", params.market);
|
|
62
|
-
}
|
|
63
|
-
if (params.max !== undefined) {
|
|
64
|
-
url = buildQueryParams(url, "max", "" + params.max);
|
|
65
|
-
}
|
|
66
|
-
if (params.startTs !== undefined) {
|
|
67
|
-
url = buildQueryParams(url, "startTs", "" + params.startTs);
|
|
68
|
-
}
|
|
69
|
-
if (params.endTs !== undefined) {
|
|
70
|
-
url = buildQueryParams(url, "endTs", "" + params.endTs);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
return url;
|
|
74
|
-
};
|
|
75
|
-
//# sourceMappingURL=utilities.js.map
|
package/dist/utilities.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../src/utilities.ts"],"names":[],"mappings":";;;AAGa,QAA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