@polymarket/clob-client-v2 1.0.5 → 1.0.6-pr79.0
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/README.md +3 -0
- package/dist/_virtual/rolldown_runtime.cjs +29 -0
- package/dist/client.cjs +886 -0
- package/dist/client.cjs.map +1 -0
- package/dist/client.d.cts +165 -0
- package/dist/client.d.ts +167 -0
- package/dist/client.js +886 -0
- package/dist/client.js.map +1 -0
- package/dist/config.cjs +37 -0
- package/dist/config.cjs.map +1 -0
- package/dist/config.d.cts +17 -0
- package/dist/config.d.ts +17 -0
- package/dist/config.js +34 -0
- package/dist/config.js.map +1 -0
- package/dist/constants.cjs +15 -0
- package/dist/constants.cjs.map +1 -0
- package/dist/constants.js +10 -0
- package/dist/constants.js.map +1 -0
- package/dist/endpoints.cjs +125 -0
- package/dist/endpoints.cjs.map +1 -0
- package/dist/endpoints.js +65 -0
- package/dist/endpoints.js.map +1 -0
- package/dist/errors.cjs +20 -0
- package/dist/errors.cjs.map +1 -0
- package/dist/errors.d.cts +11 -0
- package/dist/errors.d.ts +11 -0
- package/dist/errors.js +17 -0
- package/dist/errors.js.map +1 -0
- package/dist/fees/index.cjs +21 -0
- package/dist/fees/index.cjs.map +1 -0
- package/dist/fees/index.d.cts +5 -0
- package/dist/fees/index.d.ts +5 -0
- package/dist/fees/index.js +19 -0
- package/dist/fees/index.js.map +1 -0
- package/dist/headers/index.cjs +34 -0
- package/dist/headers/index.cjs.map +1 -0
- package/dist/headers/index.d.cts +9 -0
- package/dist/headers/index.d.ts +11 -0
- package/dist/headers/index.js +33 -0
- package/dist/headers/index.js.map +1 -0
- package/dist/http-helpers/index.cjs +109 -0
- package/dist/http-helpers/index.cjs.map +1 -0
- package/dist/http-helpers/index.js +101 -0
- package/dist/http-helpers/index.js.map +1 -0
- package/dist/index.cjs +35 -2620
- package/dist/index.d.cts +14 -1039
- package/dist/index.d.ts +16 -1039
- package/dist/index.js +15 -2563
- package/dist/order-builder/helpers/buildMarketOrderCreationArgs.cjs +43 -0
- package/dist/order-builder/helpers/buildMarketOrderCreationArgs.cjs.map +1 -0
- package/dist/order-builder/helpers/buildMarketOrderCreationArgs.js +42 -0
- package/dist/order-builder/helpers/buildMarketOrderCreationArgs.js.map +1 -0
- package/dist/order-builder/helpers/buildOrder.cjs +34 -0
- package/dist/order-builder/helpers/buildOrder.cjs.map +1 -0
- package/dist/order-builder/helpers/buildOrder.js +34 -0
- package/dist/order-builder/helpers/buildOrder.js.map +1 -0
- package/dist/order-builder/helpers/buildOrderCreationArgs.cjs +45 -0
- package/dist/order-builder/helpers/buildOrderCreationArgs.cjs.map +1 -0
- package/dist/order-builder/helpers/buildOrderCreationArgs.js +44 -0
- package/dist/order-builder/helpers/buildOrderCreationArgs.js.map +1 -0
- package/dist/order-builder/helpers/calculateBuyMarketPrice.cjs +24 -0
- package/dist/order-builder/helpers/calculateBuyMarketPrice.cjs.map +1 -0
- package/dist/order-builder/helpers/calculateBuyMarketPrice.js +24 -0
- package/dist/order-builder/helpers/calculateBuyMarketPrice.js.map +1 -0
- package/dist/order-builder/helpers/calculateSellMarketPrice.cjs +24 -0
- package/dist/order-builder/helpers/calculateSellMarketPrice.cjs.map +1 -0
- package/dist/order-builder/helpers/calculateSellMarketPrice.js +24 -0
- package/dist/order-builder/helpers/calculateSellMarketPrice.js.map +1 -0
- package/dist/order-builder/helpers/createMarketOrder.cjs +34 -0
- package/dist/order-builder/helpers/createMarketOrder.cjs.map +1 -0
- package/dist/order-builder/helpers/createMarketOrder.js +34 -0
- package/dist/order-builder/helpers/createMarketOrder.js.map +1 -0
- package/dist/order-builder/helpers/createOrder.cjs +34 -0
- package/dist/order-builder/helpers/createOrder.cjs.map +1 -0
- package/dist/order-builder/helpers/createOrder.js +34 -0
- package/dist/order-builder/helpers/createOrder.js.map +1 -0
- package/dist/order-builder/helpers/getMarketOrderRawAmounts.cjs +36 -0
- package/dist/order-builder/helpers/getMarketOrderRawAmounts.cjs.map +1 -0
- package/dist/order-builder/helpers/getMarketOrderRawAmounts.js +36 -0
- package/dist/order-builder/helpers/getMarketOrderRawAmounts.js.map +1 -0
- package/dist/order-builder/helpers/getOrderRawAmounts.cjs +36 -0
- package/dist/order-builder/helpers/getOrderRawAmounts.cjs.map +1 -0
- package/dist/order-builder/helpers/getOrderRawAmounts.js +36 -0
- package/dist/order-builder/helpers/getOrderRawAmounts.js.map +1 -0
- package/dist/order-builder/helpers/roundingConfig.cjs +28 -0
- package/dist/order-builder/helpers/roundingConfig.cjs.map +1 -0
- package/dist/order-builder/helpers/roundingConfig.js +27 -0
- package/dist/order-builder/helpers/roundingConfig.js.map +1 -0
- package/dist/order-builder/index.d.ts +1 -0
- package/dist/order-builder/orderBuilder.cjs +51 -0
- package/dist/order-builder/orderBuilder.cjs.map +1 -0
- package/dist/order-builder/orderBuilder.d.cts +37 -0
- package/dist/order-builder/orderBuilder.d.ts +39 -0
- package/dist/order-builder/orderBuilder.js +51 -0
- package/dist/order-builder/orderBuilder.js.map +1 -0
- package/dist/order-utils/exchangeOrderBuilderV1.cjs +128 -0
- package/dist/order-utils/exchangeOrderBuilderV1.cjs.map +1 -0
- package/dist/order-utils/exchangeOrderBuilderV1.d.ts +2 -0
- package/dist/order-utils/exchangeOrderBuilderV1.js +127 -0
- package/dist/order-utils/exchangeOrderBuilderV1.js.map +1 -0
- package/dist/order-utils/exchangeOrderBuilderV2.cjs +196 -0
- package/dist/order-utils/exchangeOrderBuilderV2.cjs.map +1 -0
- package/dist/order-utils/exchangeOrderBuilderV2.d.ts +2 -0
- package/dist/order-utils/exchangeOrderBuilderV2.js +194 -0
- package/dist/order-utils/exchangeOrderBuilderV2.js.map +1 -0
- package/dist/order-utils/index.d.ts +7 -0
- package/dist/order-utils/model/ctfExchangeV1TypedData.cjs +60 -0
- package/dist/order-utils/model/ctfExchangeV1TypedData.cjs.map +1 -0
- package/dist/order-utils/model/ctfExchangeV1TypedData.js +57 -0
- package/dist/order-utils/model/ctfExchangeV1TypedData.js.map +1 -0
- package/dist/order-utils/model/ctfExchangeV2TypedData.cjs +58 -0
- package/dist/order-utils/model/ctfExchangeV2TypedData.cjs.map +1 -0
- package/dist/order-utils/model/ctfExchangeV2TypedData.js +54 -0
- package/dist/order-utils/model/ctfExchangeV2TypedData.js.map +1 -0
- package/dist/order-utils/model/eip712.cjs +24 -0
- package/dist/order-utils/model/eip712.cjs.map +1 -0
- package/dist/order-utils/model/eip712.d.cts +9 -0
- package/dist/order-utils/model/eip712.d.ts +9 -0
- package/dist/order-utils/model/eip712.js +23 -0
- package/dist/order-utils/model/eip712.js.map +1 -0
- package/dist/order-utils/model/order.d.cts +5 -0
- package/dist/order-utils/model/order.d.ts +5 -0
- package/dist/order-utils/model/orderDataV1.d.cts +68 -0
- package/dist/order-utils/model/orderDataV1.d.ts +69 -0
- package/dist/order-utils/model/orderDataV2.d.cts +68 -0
- package/dist/order-utils/model/orderDataV2.d.ts +69 -0
- package/dist/order-utils/model/side.cjs +11 -0
- package/dist/order-utils/model/side.cjs.map +1 -0
- package/dist/order-utils/model/side.d.cts +8 -0
- package/dist/order-utils/model/side.d.ts +8 -0
- package/dist/order-utils/model/side.js +10 -0
- package/dist/order-utils/model/side.js.map +1 -0
- package/dist/order-utils/model/signatureTypeV1.cjs +21 -0
- package/dist/order-utils/model/signatureTypeV1.cjs.map +1 -0
- package/dist/order-utils/model/signatureTypeV1.d.cts +18 -0
- package/dist/order-utils/model/signatureTypeV1.d.ts +18 -0
- package/dist/order-utils/model/signatureTypeV1.js +20 -0
- package/dist/order-utils/model/signatureTypeV1.js.map +1 -0
- package/dist/order-utils/model/signatureTypeV2.cjs +25 -0
- package/dist/order-utils/model/signatureTypeV2.cjs.map +1 -0
- package/dist/order-utils/model/signatureTypeV2.d.cts +22 -0
- package/dist/order-utils/model/signatureTypeV2.d.ts +22 -0
- package/dist/order-utils/model/signatureTypeV2.js +24 -0
- package/dist/order-utils/model/signatureTypeV2.js.map +1 -0
- package/dist/order-utils/utils.cjs +9 -0
- package/dist/order-utils/utils.cjs.map +1 -0
- package/dist/order-utils/utils.js +8 -0
- package/dist/order-utils/utils.js.map +1 -0
- package/dist/signing/constants.cjs +7 -0
- package/dist/signing/constants.cjs.map +1 -0
- package/dist/signing/constants.js +6 -0
- package/dist/signing/constants.js.map +1 -0
- package/dist/signing/eip712.cjs +51 -0
- package/dist/signing/eip712.cjs.map +1 -0
- package/dist/signing/eip712.d.ts +2 -0
- package/dist/signing/eip712.js +51 -0
- package/dist/signing/eip712.js.map +1 -0
- package/dist/signing/hmac.cjs +40 -0
- package/dist/signing/hmac.cjs.map +1 -0
- package/dist/signing/hmac.js +39 -0
- package/dist/signing/hmac.js.map +1 -0
- package/dist/signing/index.d.ts +2 -0
- package/dist/signing/signer.cjs +41 -0
- package/dist/signing/signer.cjs.map +1 -0
- package/dist/signing/signer.d.cts +17 -0
- package/dist/signing/signer.d.ts +17 -0
- package/dist/signing/signer.js +39 -0
- package/dist/signing/signer.js.map +1 -0
- package/dist/types/clob.cjs +35 -0
- package/dist/types/clob.cjs.map +1 -0
- package/dist/types/clob.d.cts +427 -0
- package/dist/types/clob.d.ts +427 -0
- package/dist/types/clob.js +32 -0
- package/dist/types/clob.js.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/ordersV1.cjs +29 -0
- package/dist/types/ordersV1.cjs.map +1 -0
- package/dist/types/ordersV1.d.cts +115 -0
- package/dist/types/ordersV1.d.ts +116 -0
- package/dist/types/ordersV1.js +28 -0
- package/dist/types/ordersV1.js.map +1 -0
- package/dist/types/ordersV2.cjs +30 -0
- package/dist/types/ordersV2.cjs.map +1 -0
- package/dist/types/ordersV2.d.cts +113 -0
- package/dist/types/ordersV2.d.ts +114 -0
- package/dist/types/ordersV2.js +29 -0
- package/dist/types/ordersV2.js.map +1 -0
- package/dist/types/unifiedOrder.cjs +10 -0
- package/dist/types/unifiedOrder.cjs.map +1 -0
- package/dist/types/unifiedOrder.d.cts +56 -0
- package/dist/types/unifiedOrder.d.ts +57 -0
- package/dist/types/unifiedOrder.js +9 -0
- package/dist/types/unifiedOrder.js.map +1 -0
- package/dist/utilities.cjs +50 -0
- package/dist/utilities.cjs.map +1 -0
- package/dist/utilities.js +43 -0
- package/dist/utilities.js.map +1 -0
- package/package.json +3 -3
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
//#region src/order-utils/model/ctfExchangeV1TypedData.ts
|
|
2
|
+
const CTF_EXCHANGE_V1_DOMAIN_NAME = "Polymarket CTF Exchange";
|
|
3
|
+
const CTF_EXCHANGE_V1_DOMAIN_VERSION = "1";
|
|
4
|
+
const CTF_EXCHANGE_V1_ORDER_STRUCT = [
|
|
5
|
+
{
|
|
6
|
+
name: "salt",
|
|
7
|
+
type: "uint256"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
name: "maker",
|
|
11
|
+
type: "address"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: "signer",
|
|
15
|
+
type: "address"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: "taker",
|
|
19
|
+
type: "address"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: "tokenId",
|
|
23
|
+
type: "uint256"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: "makerAmount",
|
|
27
|
+
type: "uint256"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "takerAmount",
|
|
31
|
+
type: "uint256"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "expiration",
|
|
35
|
+
type: "uint256"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "nonce",
|
|
39
|
+
type: "uint256"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: "feeRateBps",
|
|
43
|
+
type: "uint256"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "side",
|
|
47
|
+
type: "uint8"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: "signatureType",
|
|
51
|
+
type: "uint8"
|
|
52
|
+
}
|
|
53
|
+
];
|
|
54
|
+
|
|
55
|
+
//#endregion
|
|
56
|
+
export { CTF_EXCHANGE_V1_DOMAIN_NAME, CTF_EXCHANGE_V1_DOMAIN_VERSION, CTF_EXCHANGE_V1_ORDER_STRUCT };
|
|
57
|
+
//# sourceMappingURL=ctfExchangeV1TypedData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ctfExchangeV1TypedData.js","names":[],"sources":["../../../src/order-utils/model/ctfExchangeV1TypedData.ts"],"sourcesContent":["export const CTF_EXCHANGE_V1_DOMAIN_NAME = \"Polymarket CTF Exchange\";\n\nexport const CTF_EXCHANGE_V1_DOMAIN_VERSION = \"1\";\n\nexport const CTF_EXCHANGE_V1_ORDER_STRUCT = [\n\t{ name: \"salt\", type: \"uint256\" },\n\t{ name: \"maker\", type: \"address\" },\n\t{ name: \"signer\", type: \"address\" },\n\t{ name: \"taker\", type: \"address\" },\n\t{ name: \"tokenId\", type: \"uint256\" },\n\t{ name: \"makerAmount\", type: \"uint256\" },\n\t{ name: \"takerAmount\", type: \"uint256\" },\n\t{ name: \"expiration\", type: \"uint256\" },\n\t{ name: \"nonce\", type: \"uint256\" },\n\t{ name: \"feeRateBps\", type: \"uint256\" },\n\t{ name: \"side\", type: \"uint8\" },\n\t{ name: \"signatureType\", type: \"uint8\" },\n];\n"],"mappings":";AAAA,MAAa,8BAA8B;AAE3C,MAAa,iCAAiC;AAE9C,MAAa,+BAA+B;CAC3C;EAAE,MAAM;EAAQ,MAAM;EAAW;CACjC;EAAE,MAAM;EAAS,MAAM;EAAW;CAClC;EAAE,MAAM;EAAU,MAAM;EAAW;CACnC;EAAE,MAAM;EAAS,MAAM;EAAW;CAClC;EAAE,MAAM;EAAW,MAAM;EAAW;CACpC;EAAE,MAAM;EAAe,MAAM;EAAW;CACxC;EAAE,MAAM;EAAe,MAAM;EAAW;CACxC;EAAE,MAAM;EAAc,MAAM;EAAW;CACvC;EAAE,MAAM;EAAS,MAAM;EAAW;CAClC;EAAE,MAAM;EAAc,MAAM;EAAW;CACvC;EAAE,MAAM;EAAQ,MAAM;EAAS;CAC/B;EAAE,MAAM;EAAiB,MAAM;EAAS;CACxC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/order-utils/model/ctfExchangeV2TypedData.ts
|
|
3
|
+
const CTF_EXCHANGE_V2_DOMAIN_NAME = "Polymarket CTF Exchange";
|
|
4
|
+
const CTF_EXCHANGE_V2_DOMAIN_VERSION = "2";
|
|
5
|
+
const CTF_EXCHANGE_V3_DOMAIN_VERSION = "3";
|
|
6
|
+
const CTF_EXCHANGE_V2_ORDER_STRUCT = [
|
|
7
|
+
{
|
|
8
|
+
name: "salt",
|
|
9
|
+
type: "uint256"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
name: "maker",
|
|
13
|
+
type: "address"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: "signer",
|
|
17
|
+
type: "address"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "tokenId",
|
|
21
|
+
type: "uint256"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "makerAmount",
|
|
25
|
+
type: "uint256"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "takerAmount",
|
|
29
|
+
type: "uint256"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "side",
|
|
33
|
+
type: "uint8"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "signatureType",
|
|
37
|
+
type: "uint8"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "timestamp",
|
|
41
|
+
type: "uint256"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "metadata",
|
|
45
|
+
type: "bytes32"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "builder",
|
|
49
|
+
type: "bytes32"
|
|
50
|
+
}
|
|
51
|
+
];
|
|
52
|
+
|
|
53
|
+
//#endregion
|
|
54
|
+
exports.CTF_EXCHANGE_V2_DOMAIN_NAME = CTF_EXCHANGE_V2_DOMAIN_NAME;
|
|
55
|
+
exports.CTF_EXCHANGE_V2_DOMAIN_VERSION = CTF_EXCHANGE_V2_DOMAIN_VERSION;
|
|
56
|
+
exports.CTF_EXCHANGE_V2_ORDER_STRUCT = CTF_EXCHANGE_V2_ORDER_STRUCT;
|
|
57
|
+
exports.CTF_EXCHANGE_V3_DOMAIN_VERSION = CTF_EXCHANGE_V3_DOMAIN_VERSION;
|
|
58
|
+
//# sourceMappingURL=ctfExchangeV2TypedData.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ctfExchangeV2TypedData.cjs","names":[],"sources":["../../../src/order-utils/model/ctfExchangeV2TypedData.ts"],"sourcesContent":["export const CTF_EXCHANGE_V2_DOMAIN_NAME = \"Polymarket CTF Exchange\";\n\nexport const CTF_EXCHANGE_V2_DOMAIN_VERSION = \"2\";\n\nexport const CTF_EXCHANGE_V3_DOMAIN_VERSION = \"3\";\n\nexport const CTF_EXCHANGE_V2_ORDER_STRUCT = [\n\t{ name: \"salt\", type: \"uint256\" },\n\t{ name: \"maker\", type: \"address\" },\n\t{ name: \"signer\", type: \"address\" },\n\t{ name: \"tokenId\", type: \"uint256\" },\n\t{ name: \"makerAmount\", type: \"uint256\" },\n\t{ name: \"takerAmount\", type: \"uint256\" },\n\t{ name: \"side\", type: \"uint8\" },\n\t{ name: \"signatureType\", type: \"uint8\" },\n\t{ name: \"timestamp\", type: \"uint256\" },\n\t{ name: \"metadata\", type: \"bytes32\" },\n\t{ name: \"builder\", type: \"bytes32\" },\n];\n"],"mappings":";;AAAA,MAAa,8BAA8B;AAE3C,MAAa,iCAAiC;AAE9C,MAAa,iCAAiC;AAE9C,MAAa,+BAA+B;CAC3C;EAAE,MAAM;EAAQ,MAAM;EAAW;CACjC;EAAE,MAAM;EAAS,MAAM;EAAW;CAClC;EAAE,MAAM;EAAU,MAAM;EAAW;CACnC;EAAE,MAAM;EAAW,MAAM;EAAW;CACpC;EAAE,MAAM;EAAe,MAAM;EAAW;CACxC;EAAE,MAAM;EAAe,MAAM;EAAW;CACxC;EAAE,MAAM;EAAQ,MAAM;EAAS;CAC/B;EAAE,MAAM;EAAiB,MAAM;EAAS;CACxC;EAAE,MAAM;EAAa,MAAM;EAAW;CACtC;EAAE,MAAM;EAAY,MAAM;EAAW;CACrC;EAAE,MAAM;EAAW,MAAM;EAAW;CACpC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
//#region src/order-utils/model/ctfExchangeV2TypedData.ts
|
|
2
|
+
const CTF_EXCHANGE_V2_DOMAIN_NAME = "Polymarket CTF Exchange";
|
|
3
|
+
const CTF_EXCHANGE_V2_DOMAIN_VERSION = "2";
|
|
4
|
+
const CTF_EXCHANGE_V3_DOMAIN_VERSION = "3";
|
|
5
|
+
const CTF_EXCHANGE_V2_ORDER_STRUCT = [
|
|
6
|
+
{
|
|
7
|
+
name: "salt",
|
|
8
|
+
type: "uint256"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: "maker",
|
|
12
|
+
type: "address"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: "signer",
|
|
16
|
+
type: "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: "tokenId",
|
|
20
|
+
type: "uint256"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: "makerAmount",
|
|
24
|
+
type: "uint256"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: "takerAmount",
|
|
28
|
+
type: "uint256"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: "side",
|
|
32
|
+
type: "uint8"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: "signatureType",
|
|
36
|
+
type: "uint8"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "timestamp",
|
|
40
|
+
type: "uint256"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: "metadata",
|
|
44
|
+
type: "bytes32"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: "builder",
|
|
48
|
+
type: "bytes32"
|
|
49
|
+
}
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
export { CTF_EXCHANGE_V2_DOMAIN_NAME, CTF_EXCHANGE_V2_DOMAIN_VERSION, CTF_EXCHANGE_V2_ORDER_STRUCT, CTF_EXCHANGE_V3_DOMAIN_VERSION };
|
|
54
|
+
//# sourceMappingURL=ctfExchangeV2TypedData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ctfExchangeV2TypedData.js","names":[],"sources":["../../../src/order-utils/model/ctfExchangeV2TypedData.ts"],"sourcesContent":["export const CTF_EXCHANGE_V2_DOMAIN_NAME = \"Polymarket CTF Exchange\";\n\nexport const CTF_EXCHANGE_V2_DOMAIN_VERSION = \"2\";\n\nexport const CTF_EXCHANGE_V3_DOMAIN_VERSION = \"3\";\n\nexport const CTF_EXCHANGE_V2_ORDER_STRUCT = [\n\t{ name: \"salt\", type: \"uint256\" },\n\t{ name: \"maker\", type: \"address\" },\n\t{ name: \"signer\", type: \"address\" },\n\t{ name: \"tokenId\", type: \"uint256\" },\n\t{ name: \"makerAmount\", type: \"uint256\" },\n\t{ name: \"takerAmount\", type: \"uint256\" },\n\t{ name: \"side\", type: \"uint8\" },\n\t{ name: \"signatureType\", type: \"uint8\" },\n\t{ name: \"timestamp\", type: \"uint256\" },\n\t{ name: \"metadata\", type: \"bytes32\" },\n\t{ name: \"builder\", type: \"bytes32\" },\n];\n"],"mappings":";AAAA,MAAa,8BAA8B;AAE3C,MAAa,iCAAiC;AAE9C,MAAa,iCAAiC;AAE9C,MAAa,+BAA+B;CAC3C;EAAE,MAAM;EAAQ,MAAM;EAAW;CACjC;EAAE,MAAM;EAAS,MAAM;EAAW;CAClC;EAAE,MAAM;EAAU,MAAM;EAAW;CACnC;EAAE,MAAM;EAAW,MAAM;EAAW;CACpC;EAAE,MAAM;EAAe,MAAM;EAAW;CACxC;EAAE,MAAM;EAAe,MAAM;EAAW;CACxC;EAAE,MAAM;EAAQ,MAAM;EAAS;CAC/B;EAAE,MAAM;EAAiB,MAAM;EAAS;CACxC;EAAE,MAAM;EAAa,MAAM;EAAW;CACtC;EAAE,MAAM;EAAY,MAAM;EAAW;CACrC;EAAE,MAAM;EAAW,MAAM;EAAW;CACpC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/order-utils/model/eip712.ts
|
|
3
|
+
const EIP712_DOMAIN = [
|
|
4
|
+
{
|
|
5
|
+
name: "name",
|
|
6
|
+
type: "string"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "version",
|
|
10
|
+
type: "string"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
name: "chainId",
|
|
14
|
+
type: "uint256"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "verifyingContract",
|
|
18
|
+
type: "address"
|
|
19
|
+
}
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.EIP712_DOMAIN = EIP712_DOMAIN;
|
|
24
|
+
//# sourceMappingURL=eip712.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eip712.cjs","names":[],"sources":["../../../src/order-utils/model/eip712.ts"],"sourcesContent":["export interface EIP712TypedData {\n\ttypes: EIP712Types;\n\tdomain: EIP712Object;\n\tmessage: EIP712Object;\n\tprimaryType: string;\n}\n\nexport interface EIP712Types {\n\t[key: string]: EIP712Parameter[];\n}\n\nexport interface EIP712Parameter {\n\tname: string;\n\ttype: string;\n}\n\nexport declare type EIP712ObjectValue = string | number | EIP712Object;\n\nexport interface EIP712Object {\n\t[key: string]: EIP712ObjectValue;\n}\n\nexport interface MessageTypes {\n\t[additionalProperties: string]: MessageTypeProperty[];\n\tEIP712Domain: MessageTypeProperty[];\n}\n\nexport interface MessageTypeProperty {\n\tname: string;\n\ttype: string;\n}\n\nexport const EIP712_DOMAIN = [\n\t{ name: \"name\", type: \"string\" },\n\t{ name: \"version\", type: \"string\" },\n\t{ name: \"chainId\", type: \"uint256\" },\n\t{ name: \"verifyingContract\", type: \"address\" },\n];\n"],"mappings":";;AAgCA,MAAa,gBAAgB;CAC5B;EAAE,MAAM;EAAQ,MAAM;EAAU;CAChC;EAAE,MAAM;EAAW,MAAM;EAAU;CACnC;EAAE,MAAM;EAAW,MAAM;EAAW;CACpC;EAAE,MAAM;EAAqB,MAAM;EAAW;CAC9C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/order-utils/model/eip712.d.ts
|
|
2
|
+
|
|
3
|
+
declare type EIP712ObjectValue = string | number | EIP712Object;
|
|
4
|
+
interface EIP712Object {
|
|
5
|
+
[key: string]: EIP712ObjectValue;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { EIP712Object, EIP712ObjectValue };
|
|
9
|
+
//# sourceMappingURL=eip712.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/order-utils/model/eip712.ts
|
|
2
|
+
const EIP712_DOMAIN = [
|
|
3
|
+
{
|
|
4
|
+
name: "name",
|
|
5
|
+
type: "string"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
name: "version",
|
|
9
|
+
type: "string"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
name: "chainId",
|
|
13
|
+
type: "uint256"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: "verifyingContract",
|
|
17
|
+
type: "address"
|
|
18
|
+
}
|
|
19
|
+
];
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { EIP712_DOMAIN };
|
|
23
|
+
//# sourceMappingURL=eip712.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eip712.js","names":[],"sources":["../../../src/order-utils/model/eip712.ts"],"sourcesContent":["export interface EIP712TypedData {\n\ttypes: EIP712Types;\n\tdomain: EIP712Object;\n\tmessage: EIP712Object;\n\tprimaryType: string;\n}\n\nexport interface EIP712Types {\n\t[key: string]: EIP712Parameter[];\n}\n\nexport interface EIP712Parameter {\n\tname: string;\n\ttype: string;\n}\n\nexport declare type EIP712ObjectValue = string | number | EIP712Object;\n\nexport interface EIP712Object {\n\t[key: string]: EIP712ObjectValue;\n}\n\nexport interface MessageTypes {\n\t[additionalProperties: string]: MessageTypeProperty[];\n\tEIP712Domain: MessageTypeProperty[];\n}\n\nexport interface MessageTypeProperty {\n\tname: string;\n\ttype: string;\n}\n\nexport const EIP712_DOMAIN = [\n\t{ name: \"name\", type: \"string\" },\n\t{ name: \"version\", type: \"string\" },\n\t{ name: \"chainId\", type: \"uint256\" },\n\t{ name: \"verifyingContract\", type: \"address\" },\n];\n"],"mappings":";AAgCA,MAAa,gBAAgB;CAC5B;EAAE,MAAM;EAAQ,MAAM;EAAU;CAChC;EAAE,MAAM;EAAW,MAAM;EAAU;CACnC;EAAE,MAAM;EAAW,MAAM;EAAW;CACpC;EAAE,MAAM;EAAqB,MAAM;EAAW;CAC9C"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { EIP712Object } from "./eip712.cjs";
|
|
2
|
+
import { OrderSignature } from "./order.cjs";
|
|
3
|
+
import { Side } from "./side.cjs";
|
|
4
|
+
import { SignatureTypeV1 } from "./signatureTypeV1.cjs";
|
|
5
|
+
|
|
6
|
+
//#region src/order-utils/model/orderDataV1.d.ts
|
|
7
|
+
|
|
8
|
+
interface OrderV1 extends EIP712Object {
|
|
9
|
+
/**
|
|
10
|
+
* Unique salt to ensure entropy
|
|
11
|
+
*/
|
|
12
|
+
readonly salt: string;
|
|
13
|
+
/**
|
|
14
|
+
* Maker of the order, i.e the source of funds for the order
|
|
15
|
+
*/
|
|
16
|
+
readonly maker: string;
|
|
17
|
+
/**
|
|
18
|
+
* Signer of the order
|
|
19
|
+
*/
|
|
20
|
+
readonly signer: string;
|
|
21
|
+
/**
|
|
22
|
+
* Address of the order taker. The zero address is used to indicate a public order
|
|
23
|
+
*/
|
|
24
|
+
readonly taker: string;
|
|
25
|
+
/**
|
|
26
|
+
* Token Id of the CTF ERC1155 asset to be bought or sold.
|
|
27
|
+
* If BUY, this is the tokenId of the asset to be bought, i.e the makerAssetId
|
|
28
|
+
* If SELL, this is the tokenId of the asset to be sold, i.e the takerAssetId
|
|
29
|
+
*/
|
|
30
|
+
readonly tokenId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Maker amount, i.e the max amount of tokens to be sold
|
|
33
|
+
*/
|
|
34
|
+
readonly makerAmount: string;
|
|
35
|
+
/**
|
|
36
|
+
* Taker amount, i.e the minimum amount of tokens to be received
|
|
37
|
+
*/
|
|
38
|
+
readonly takerAmount: string;
|
|
39
|
+
/**
|
|
40
|
+
* Timestamp after which the order is expired
|
|
41
|
+
*/
|
|
42
|
+
readonly expiration: string;
|
|
43
|
+
/**
|
|
44
|
+
* Nonce used for onchain cancellations
|
|
45
|
+
*/
|
|
46
|
+
readonly nonce: string;
|
|
47
|
+
/**
|
|
48
|
+
* Fee rate, in basis points, charged to the order maker, charged on proceeds
|
|
49
|
+
*/
|
|
50
|
+
readonly feeRateBps: string;
|
|
51
|
+
/**
|
|
52
|
+
* The side of the order, BUY or SELL
|
|
53
|
+
*/
|
|
54
|
+
readonly side: Side;
|
|
55
|
+
/**
|
|
56
|
+
* Signature type used by the Order
|
|
57
|
+
*/
|
|
58
|
+
readonly signatureType: SignatureTypeV1;
|
|
59
|
+
}
|
|
60
|
+
interface SignedOrderV1 extends OrderV1 {
|
|
61
|
+
/**
|
|
62
|
+
* The order signature
|
|
63
|
+
*/
|
|
64
|
+
readonly signature: OrderSignature;
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
export { SignedOrderV1 };
|
|
68
|
+
//# sourceMappingURL=orderDataV1.d.cts.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { EIP712Object } from "./eip712.js";
|
|
2
|
+
import { OrderSignature } from "./order.js";
|
|
3
|
+
import { Side } from "./side.js";
|
|
4
|
+
import "../../types/index.js";
|
|
5
|
+
import { SignatureTypeV1 } from "./signatureTypeV1.js";
|
|
6
|
+
|
|
7
|
+
//#region src/order-utils/model/orderDataV1.d.ts
|
|
8
|
+
|
|
9
|
+
interface OrderV1 extends EIP712Object {
|
|
10
|
+
/**
|
|
11
|
+
* Unique salt to ensure entropy
|
|
12
|
+
*/
|
|
13
|
+
readonly salt: string;
|
|
14
|
+
/**
|
|
15
|
+
* Maker of the order, i.e the source of funds for the order
|
|
16
|
+
*/
|
|
17
|
+
readonly maker: string;
|
|
18
|
+
/**
|
|
19
|
+
* Signer of the order
|
|
20
|
+
*/
|
|
21
|
+
readonly signer: string;
|
|
22
|
+
/**
|
|
23
|
+
* Address of the order taker. The zero address is used to indicate a public order
|
|
24
|
+
*/
|
|
25
|
+
readonly taker: string;
|
|
26
|
+
/**
|
|
27
|
+
* Token Id of the CTF ERC1155 asset to be bought or sold.
|
|
28
|
+
* If BUY, this is the tokenId of the asset to be bought, i.e the makerAssetId
|
|
29
|
+
* If SELL, this is the tokenId of the asset to be sold, i.e the takerAssetId
|
|
30
|
+
*/
|
|
31
|
+
readonly tokenId: string;
|
|
32
|
+
/**
|
|
33
|
+
* Maker amount, i.e the max amount of tokens to be sold
|
|
34
|
+
*/
|
|
35
|
+
readonly makerAmount: string;
|
|
36
|
+
/**
|
|
37
|
+
* Taker amount, i.e the minimum amount of tokens to be received
|
|
38
|
+
*/
|
|
39
|
+
readonly takerAmount: string;
|
|
40
|
+
/**
|
|
41
|
+
* Timestamp after which the order is expired
|
|
42
|
+
*/
|
|
43
|
+
readonly expiration: string;
|
|
44
|
+
/**
|
|
45
|
+
* Nonce used for onchain cancellations
|
|
46
|
+
*/
|
|
47
|
+
readonly nonce: string;
|
|
48
|
+
/**
|
|
49
|
+
* Fee rate, in basis points, charged to the order maker, charged on proceeds
|
|
50
|
+
*/
|
|
51
|
+
readonly feeRateBps: string;
|
|
52
|
+
/**
|
|
53
|
+
* The side of the order, BUY or SELL
|
|
54
|
+
*/
|
|
55
|
+
readonly side: Side;
|
|
56
|
+
/**
|
|
57
|
+
* Signature type used by the Order
|
|
58
|
+
*/
|
|
59
|
+
readonly signatureType: SignatureTypeV1;
|
|
60
|
+
}
|
|
61
|
+
interface SignedOrderV1 extends OrderV1 {
|
|
62
|
+
/**
|
|
63
|
+
* The order signature
|
|
64
|
+
*/
|
|
65
|
+
readonly signature: OrderSignature;
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
export { OrderV1, SignedOrderV1 };
|
|
69
|
+
//# sourceMappingURL=orderDataV1.d.ts.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { EIP712Object } from "./eip712.cjs";
|
|
2
|
+
import { OrderSignature } from "./order.cjs";
|
|
3
|
+
import { Side } from "./side.cjs";
|
|
4
|
+
import { SignatureTypeV2 } from "./signatureTypeV2.cjs";
|
|
5
|
+
|
|
6
|
+
//#region src/order-utils/model/orderDataV2.d.ts
|
|
7
|
+
|
|
8
|
+
interface OrderV2 extends EIP712Object {
|
|
9
|
+
/**
|
|
10
|
+
* Unique salt to ensure entropy
|
|
11
|
+
*/
|
|
12
|
+
readonly salt: string;
|
|
13
|
+
/**
|
|
14
|
+
* Maker of the order, i.e the source of funds for the order
|
|
15
|
+
*/
|
|
16
|
+
readonly maker: string;
|
|
17
|
+
/**
|
|
18
|
+
* Signer of the order
|
|
19
|
+
*/
|
|
20
|
+
readonly signer: string;
|
|
21
|
+
/**
|
|
22
|
+
* Token Id of the CTF ERC1155 asset to be bought or sold.
|
|
23
|
+
* If BUY, this is the tokenId of the asset to be bought, i.e the makerAssetId
|
|
24
|
+
* If SELL, this is the tokenId of the asset to be sold, i.e the takerAssetId
|
|
25
|
+
*/
|
|
26
|
+
readonly tokenId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Maker amount, i.e the max amount of tokens to be sold
|
|
29
|
+
*/
|
|
30
|
+
readonly makerAmount: string;
|
|
31
|
+
/**
|
|
32
|
+
* Taker amount, i.e the minimum amount of tokens to be received
|
|
33
|
+
*/
|
|
34
|
+
readonly takerAmount: string;
|
|
35
|
+
/**
|
|
36
|
+
* The side of the order, BUY or SELL
|
|
37
|
+
*/
|
|
38
|
+
readonly side: Side;
|
|
39
|
+
/**
|
|
40
|
+
* Signature type used by the Order
|
|
41
|
+
*/
|
|
42
|
+
readonly signatureType: SignatureTypeV2;
|
|
43
|
+
/**
|
|
44
|
+
* Timestamp of the order
|
|
45
|
+
*/
|
|
46
|
+
readonly timestamp: string;
|
|
47
|
+
/**
|
|
48
|
+
* Metadata of the order
|
|
49
|
+
*/
|
|
50
|
+
readonly metadata: string;
|
|
51
|
+
/**
|
|
52
|
+
* Builder of the order
|
|
53
|
+
*/
|
|
54
|
+
readonly builder: string;
|
|
55
|
+
/**
|
|
56
|
+
* Expiration timestamp of the order (unix seconds, "0" = no expiration)
|
|
57
|
+
*/
|
|
58
|
+
readonly expiration: string;
|
|
59
|
+
}
|
|
60
|
+
interface SignedOrderV2 extends OrderV2 {
|
|
61
|
+
/**
|
|
62
|
+
* The order signature
|
|
63
|
+
*/
|
|
64
|
+
readonly signature: OrderSignature;
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
export { SignedOrderV2 };
|
|
68
|
+
//# sourceMappingURL=orderDataV2.d.cts.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { EIP712Object } from "./eip712.js";
|
|
2
|
+
import { OrderSignature } from "./order.js";
|
|
3
|
+
import { Side } from "./side.js";
|
|
4
|
+
import "../../types/index.js";
|
|
5
|
+
import { SignatureTypeV2 } from "./signatureTypeV2.js";
|
|
6
|
+
|
|
7
|
+
//#region src/order-utils/model/orderDataV2.d.ts
|
|
8
|
+
|
|
9
|
+
interface OrderV2 extends EIP712Object {
|
|
10
|
+
/**
|
|
11
|
+
* Unique salt to ensure entropy
|
|
12
|
+
*/
|
|
13
|
+
readonly salt: string;
|
|
14
|
+
/**
|
|
15
|
+
* Maker of the order, i.e the source of funds for the order
|
|
16
|
+
*/
|
|
17
|
+
readonly maker: string;
|
|
18
|
+
/**
|
|
19
|
+
* Signer of the order
|
|
20
|
+
*/
|
|
21
|
+
readonly signer: string;
|
|
22
|
+
/**
|
|
23
|
+
* Token Id of the CTF ERC1155 asset to be bought or sold.
|
|
24
|
+
* If BUY, this is the tokenId of the asset to be bought, i.e the makerAssetId
|
|
25
|
+
* If SELL, this is the tokenId of the asset to be sold, i.e the takerAssetId
|
|
26
|
+
*/
|
|
27
|
+
readonly tokenId: string;
|
|
28
|
+
/**
|
|
29
|
+
* Maker amount, i.e the max amount of tokens to be sold
|
|
30
|
+
*/
|
|
31
|
+
readonly makerAmount: string;
|
|
32
|
+
/**
|
|
33
|
+
* Taker amount, i.e the minimum amount of tokens to be received
|
|
34
|
+
*/
|
|
35
|
+
readonly takerAmount: string;
|
|
36
|
+
/**
|
|
37
|
+
* The side of the order, BUY or SELL
|
|
38
|
+
*/
|
|
39
|
+
readonly side: Side;
|
|
40
|
+
/**
|
|
41
|
+
* Signature type used by the Order
|
|
42
|
+
*/
|
|
43
|
+
readonly signatureType: SignatureTypeV2;
|
|
44
|
+
/**
|
|
45
|
+
* Timestamp of the order
|
|
46
|
+
*/
|
|
47
|
+
readonly timestamp: string;
|
|
48
|
+
/**
|
|
49
|
+
* Metadata of the order
|
|
50
|
+
*/
|
|
51
|
+
readonly metadata: string;
|
|
52
|
+
/**
|
|
53
|
+
* Builder of the order
|
|
54
|
+
*/
|
|
55
|
+
readonly builder: string;
|
|
56
|
+
/**
|
|
57
|
+
* Expiration timestamp of the order (unix seconds, "0" = no expiration)
|
|
58
|
+
*/
|
|
59
|
+
readonly expiration: string;
|
|
60
|
+
}
|
|
61
|
+
interface SignedOrderV2 extends OrderV2 {
|
|
62
|
+
/**
|
|
63
|
+
* The order signature
|
|
64
|
+
*/
|
|
65
|
+
readonly signature: OrderSignature;
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
export { OrderV2, SignedOrderV2 };
|
|
69
|
+
//# sourceMappingURL=orderDataV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"side.cjs","names":[],"sources":["../../../src/order-utils/model/side.ts"],"sourcesContent":["export enum Side {\n\tBUY = \"BUY\",\n\tSELL = \"SELL\",\n}\n"],"mappings":";;AAAA,IAAY,wCAAL;AACN;AACA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"side.js","names":[],"sources":["../../../src/order-utils/model/side.ts"],"sourcesContent":["export enum Side {\n\tBUY = \"BUY\",\n\tSELL = \"SELL\",\n}\n"],"mappings":";AAAA,IAAY,wCAAL;AACN;AACA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/order-utils/model/signatureTypeV1.ts
|
|
3
|
+
let SignatureTypeV1 = /* @__PURE__ */ function(SignatureTypeV1$1) {
|
|
4
|
+
/**
|
|
5
|
+
* ECDSA EIP712 signatures signed by EOAs
|
|
6
|
+
*/
|
|
7
|
+
SignatureTypeV1$1[SignatureTypeV1$1["EOA"] = 0] = "EOA";
|
|
8
|
+
/**
|
|
9
|
+
* EIP712 signatures signed by EOAs that own Polymarket Proxy wallets
|
|
10
|
+
*/
|
|
11
|
+
SignatureTypeV1$1[SignatureTypeV1$1["POLY_PROXY"] = 1] = "POLY_PROXY";
|
|
12
|
+
/**
|
|
13
|
+
* EIP712 signatures signed by EOAs that own Polymarket Gnosis safes
|
|
14
|
+
*/
|
|
15
|
+
SignatureTypeV1$1[SignatureTypeV1$1["POLY_GNOSIS_SAFE"] = 2] = "POLY_GNOSIS_SAFE";
|
|
16
|
+
return SignatureTypeV1$1;
|
|
17
|
+
}({});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.SignatureTypeV1 = SignatureTypeV1;
|
|
21
|
+
//# sourceMappingURL=signatureTypeV1.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signatureTypeV1.cjs","names":[],"sources":["../../../src/order-utils/model/signatureTypeV1.ts"],"sourcesContent":["export enum SignatureTypeV1 {\n\t/**\n\t * ECDSA EIP712 signatures signed by EOAs\n\t */\n\tEOA = 0,\n\n\t/**\n\t * EIP712 signatures signed by EOAs that own Polymarket Proxy wallets\n\t */\n\tPOLY_PROXY = 1,\n\n\t/**\n\t * EIP712 signatures signed by EOAs that own Polymarket Gnosis safes\n\t */\n\tPOLY_GNOSIS_SAFE = 2,\n}\n"],"mappings":";;AAAA,IAAY,8DAAL;;;;AAIN;;;;AAKA;;;;AAKA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/order-utils/model/signatureTypeV1.d.ts
|
|
2
|
+
declare enum SignatureTypeV1 {
|
|
3
|
+
/**
|
|
4
|
+
* ECDSA EIP712 signatures signed by EOAs
|
|
5
|
+
*/
|
|
6
|
+
EOA = 0,
|
|
7
|
+
/**
|
|
8
|
+
* EIP712 signatures signed by EOAs that own Polymarket Proxy wallets
|
|
9
|
+
*/
|
|
10
|
+
POLY_PROXY = 1,
|
|
11
|
+
/**
|
|
12
|
+
* EIP712 signatures signed by EOAs that own Polymarket Gnosis safes
|
|
13
|
+
*/
|
|
14
|
+
POLY_GNOSIS_SAFE = 2,
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { SignatureTypeV1 };
|
|
18
|
+
//# sourceMappingURL=signatureTypeV1.d.cts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/order-utils/model/signatureTypeV1.d.ts
|
|
2
|
+
declare enum SignatureTypeV1 {
|
|
3
|
+
/**
|
|
4
|
+
* ECDSA EIP712 signatures signed by EOAs
|
|
5
|
+
*/
|
|
6
|
+
EOA = 0,
|
|
7
|
+
/**
|
|
8
|
+
* EIP712 signatures signed by EOAs that own Polymarket Proxy wallets
|
|
9
|
+
*/
|
|
10
|
+
POLY_PROXY = 1,
|
|
11
|
+
/**
|
|
12
|
+
* EIP712 signatures signed by EOAs that own Polymarket Gnosis safes
|
|
13
|
+
*/
|
|
14
|
+
POLY_GNOSIS_SAFE = 2,
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { SignatureTypeV1 };
|
|
18
|
+
//# sourceMappingURL=signatureTypeV1.d.ts.map
|