diff --git a/examples/GTDOrder.ts b/examples/GTDOrder.ts index 3c7cf12..eaf2d37 100644 --- a/examples/GTDOrder.ts +++ b/examples/GTDOrder.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/approveAllowances.ts b/examples/approveAllowances.ts index f990b56..928c851 100644 --- a/examples/approveAllowances.ts +++ b/examples/approveAllowances.ts @@ -15,7 +15,7 @@ export function getWallet(mainnetQ: boolean): ethers.Wallet { if (mainnetQ) { rpcUrl = `https://polygon-mainnet.g.alchemy.com/v2/${rpcToken}`; } else { - rpcUrl = `https://polygon-mumbai.g.alchemy.com/v2/${rpcToken}`; + rpcUrl = `https://polygon-amoy.g.alchemy.com/v2/${rpcToken}`; } const provider = new ethers.providers.JsonRpcProvider(rpcUrl); let wallet = new ethers.Wallet(pk); @@ -24,24 +24,24 @@ export function getWallet(mainnetQ: boolean): ethers.Wallet { } export function getUsdcContract(mainnetQ: boolean, wallet: ethers.Wallet): ethers.Contract { - const chainId = mainnetQ ? 137 : 80001; + const chainId = mainnetQ ? 137 : 80002; const contractConfig = getContractConfig(chainId); return new ethers.Contract(contractConfig.collateral, usdcAbi, wallet); } export function getCtfContract(mainnetQ: boolean, wallet: ethers.Wallet): ethers.Contract { - const chainId = mainnetQ ? 137 : 80001; + const chainId = mainnetQ ? 137 : 80002; const contractConfig = getContractConfig(chainId); return new ethers.Contract(contractConfig.conditionalTokens, ctfAbi, wallet); } async function main() { // -------------------------- - // SET MAINNET OR MUMBAI HERE + // SET MAINNET OR AMOY HERE const isMainnet = false; // -------------------------- const wallet = getWallet(isMainnet); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const contractConfig = getContractConfig(chainId); diff --git a/examples/approveNegRiskAllowances.ts b/examples/approveNegRiskAllowances.ts index 12d5cb6..1751669 100644 --- a/examples/approveNegRiskAllowances.ts +++ b/examples/approveNegRiskAllowances.ts @@ -20,7 +20,7 @@ export function getWallet(mainnetQ: boolean): ethers.Wallet { if (mainnetQ) { rpcUrl = `https://polygon-mainnet.g.alchemy.com/v2/${rpcToken}`; } else { - rpcUrl = `https://polygon-mumbai.g.alchemy.com/v2/${rpcToken}`; + rpcUrl = `https://polygon-amoy.g.alchemy.com/v2/${rpcToken}`; } const provider = new ethers.providers.JsonRpcProvider(rpcUrl); let wallet = new ethers.Wallet(pk); @@ -29,24 +29,24 @@ export function getWallet(mainnetQ: boolean): ethers.Wallet { } export function getUsdcContract(mainnetQ: boolean, wallet: ethers.Wallet): ethers.Contract { - const chainId = mainnetQ ? 137 : 80001; + const chainId = mainnetQ ? 137 : 80002; const contractConfig = getContractConfig(chainId); return new ethers.Contract(contractConfig.collateral, usdcAbi, wallet); } export function getCtfContract(mainnetQ: boolean, wallet: ethers.Wallet): ethers.Contract { - const chainId = mainnetQ ? 137 : 80001; + const chainId = mainnetQ ? 137 : 80002; const contractConfig = getContractConfig(chainId); return new ethers.Contract(contractConfig.conditionalTokens, ctfAbi, wallet); } async function main() { // -------------------------- - // SET MAINNET OR MUMBAI HERE + // SET MAINNET OR AMOY HERE const isMainnet = false; // -------------------------- const wallet = getWallet(isMainnet); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const contractConfig = getContractConfig(chainId); diff --git a/examples/areOrdersScoring.ts b/examples/areOrdersScoring.ts index ae2c12d..14dc86b 100644 --- a/examples/areOrdersScoring.ts +++ b/examples/areOrdersScoring.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/cancelAll.ts b/examples/cancelAll.ts index e82f41f..328500e 100644 --- a/examples/cancelAll.ts +++ b/examples/cancelAll.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/cancelMarketOrders.ts b/examples/cancelMarketOrders.ts index d276a92..b8e837b 100644 --- a/examples/cancelMarketOrders.ts +++ b/examples/cancelMarketOrders.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/cancelOrder.ts b/examples/cancelOrder.ts index 516416f..d0c10fe 100644 --- a/examples/cancelOrder.ts +++ b/examples/cancelOrder.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/cancelOrders.ts b/examples/cancelOrders.ts index 09b8be4..c6b0164 100644 --- a/examples/cancelOrders.ts +++ b/examples/cancelOrders.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/createApiKey.ts b/examples/createApiKey.ts index a757347..802f8c4 100644 --- a/examples/createApiKey.ts +++ b/examples/createApiKey.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/createOrDeriveApiKey.ts b/examples/createOrDeriveApiKey.ts index 44b941b..8526f85 100644 --- a/examples/createOrDeriveApiKey.ts +++ b/examples/createOrDeriveApiKey.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/deleteApiKey.ts b/examples/deleteApiKey.ts index 6759fd7..4df5829 100644 --- a/examples/deleteApiKey.ts +++ b/examples/deleteApiKey.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/deriveApiKey.ts b/examples/deriveApiKey.ts index 9248af6..d936c08 100644 --- a/examples/deriveApiKey.ts +++ b/examples/deriveApiKey.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/dropNofications.ts b/examples/dropNofications.ts index 0952cc9..2073ad9 100644 --- a/examples/dropNofications.ts +++ b/examples/dropNofications.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/geoToken.ts b/examples/geoToken.ts index 59f067f..0bdbeea 100644 --- a/examples/geoToken.ts +++ b/examples/geoToken.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; const geoBlockToken = process.env.GEO_BLOCK_TOKEN; // the geo block token console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); diff --git a/examples/getApiKeys.ts b/examples/getApiKeys.ts index efaef76..0616383 100644 --- a/examples/getApiKeys.ts +++ b/examples/getApiKeys.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/getBalanceAllowance.ts b/examples/getBalanceAllowance.ts index 8f0567b..a30db1b 100644 --- a/examples/getBalanceAllowance.ts +++ b/examples/getBalanceAllowance.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/getLargeOrders.ts b/examples/getLargeOrders.ts index 7e4ed62..ed90c25 100644 --- a/examples/getLargeOrders.ts +++ b/examples/getLargeOrders.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/getLastTradePrice.ts b/examples/getLastTradePrice.ts index 6367f8c..5a89e57 100644 --- a/examples/getLastTradePrice.ts +++ b/examples/getLastTradePrice.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/getLastTradesPrices.ts b/examples/getLastTradesPrices.ts index 0460b18..599db17 100644 --- a/examples/getLastTradesPrices.ts +++ b/examples/getLastTradesPrices.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/getMarketTradesEvents.ts b/examples/getMarketTradesEvents.ts index faae852..a036ade 100644 --- a/examples/getMarketTradesEvents.ts +++ b/examples/getMarketTradesEvents.ts @@ -6,7 +6,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const host = process.env.CLOB_API_URL || "http://localhost:8080"; - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; const clobClient = new ClobClient(host, chainId); console.log("events", await clobClient.getMarketTradesEvents("condition_id")); diff --git a/examples/getMarkets.ts b/examples/getMarkets.ts index e56d66a..417492b 100644 --- a/examples/getMarkets.ts +++ b/examples/getMarkets.ts @@ -6,7 +6,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const host = process.env.CLOB_API_URL || "http://localhost:8080"; - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; const clobClient = new ClobClient(host, chainId); console.log("market", await clobClient.getMarket("condition_id")); diff --git a/examples/getMidPoint.ts b/examples/getMidPoint.ts index d01e1dd..4b47177 100644 --- a/examples/getMidPoint.ts +++ b/examples/getMidPoint.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/getMidPoints.ts b/examples/getMidPoints.ts index f223594..4e0e261 100644 --- a/examples/getMidPoints.ts +++ b/examples/getMidPoints.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/getNofications.ts b/examples/getNofications.ts index 3caa816..6a375f9 100644 --- a/examples/getNofications.ts +++ b/examples/getNofications.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/getOpenOrders.ts b/examples/getOpenOrders.ts index 747d0fb..75a6084 100644 --- a/examples/getOpenOrders.ts +++ b/examples/getOpenOrders.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/getOrder.ts b/examples/getOrder.ts index 7edbb1a..ddde053 100644 --- a/examples/getOrder.ts +++ b/examples/getOrder.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/getOrderbook.ts b/examples/getOrderbook.ts index edda979..e1ca95a 100644 --- a/examples/getOrderbook.ts +++ b/examples/getOrderbook.ts @@ -6,7 +6,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const host = process.env.CLOB_API_URL || "http://localhost:8080"; - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; const clobClient = new ClobClient(host, chainId); const YES = "1343197538147866997676250008839231694243646439454152539053893078719042421992"; diff --git a/examples/getOrderbooks.ts b/examples/getOrderbooks.ts index 4edce65..10ee3f5 100644 --- a/examples/getOrderbooks.ts +++ b/examples/getOrderbooks.ts @@ -6,7 +6,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const host = process.env.CLOB_API_URL || "http://localhost:8080"; - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; const clobClient = new ClobClient(host, chainId); const YES = "1343197538147866997676250008839231694243646439454152539053893078719042421992"; diff --git a/examples/getPrice.ts b/examples/getPrice.ts index 950d913..e97e7c0 100644 --- a/examples/getPrice.ts +++ b/examples/getPrice.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/getPrices.ts b/examples/getPrices.ts index 558407d..015e1a3 100644 --- a/examples/getPrices.ts +++ b/examples/getPrices.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/getPricesHistory.ts b/examples/getPricesHistory.ts index 29b1a8b..a74ee5c 100644 --- a/examples/getPricesHistory.ts +++ b/examples/getPricesHistory.ts @@ -13,7 +13,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/getServerTime.ts b/examples/getServerTime.ts index bca4554..01c9249 100644 --- a/examples/getServerTime.ts +++ b/examples/getServerTime.ts @@ -6,7 +6,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const host = process.env.CLOB_API_URL || "http://localhost:8080"; - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; const clobClient = new ClobClient(host, chainId); console.log(`Server time: ${await clobClient.getServerTime()}`); diff --git a/examples/getTrades.ts b/examples/getTrades.ts index 658565e..dd78afd 100644 --- a/examples/getTrades.ts +++ b/examples/getTrades.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/isOrderScoring.ts b/examples/isOrderScoring.ts index acda9c6..7eb2b54 100644 --- a/examples/isOrderScoring.ts +++ b/examples/isOrderScoring.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/marketOrder.ts b/examples/marketOrder.ts index b7eccfa..56094fa 100644 --- a/examples/marketOrder.ts +++ b/examples/marketOrder.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/matchOrders.ts b/examples/matchOrders.ts index 7cc13b1..5a73634 100644 --- a/examples/matchOrders.ts +++ b/examples/matchOrders.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/order.ts b/examples/order.ts index 4be41ef..4f96247 100644 --- a/examples/order.ts +++ b/examples/order.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/populateOrderbook.ts b/examples/populateOrderbook.ts index b143ec8..ef64635 100644 --- a/examples/populateOrderbook.ts +++ b/examples/populateOrderbook.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/rewards.ts b/examples/rewards.ts index af2d4ac..29c45aa 100644 --- a/examples/rewards.ts +++ b/examples/rewards.ts @@ -7,7 +7,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/signatureTypes.ts b/examples/signatureTypes.ts index 488de09..0c07fe3 100644 --- a/examples/signatureTypes.ts +++ b/examples/signatureTypes.ts @@ -8,7 +8,7 @@ dotenvConfig({ path: resolve(__dirname, "../.env") }); async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/testPolyProxyMarketBuy.ts b/examples/testPolyProxyMarketBuy.ts index f84794c..ce15df0 100644 --- a/examples/testPolyProxyMarketBuy.ts +++ b/examples/testPolyProxyMarketBuy.ts @@ -31,7 +31,7 @@ async function populateBook(client: ClobClient) { async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/examples/testPolyProxyMarketSell.ts b/examples/testPolyProxyMarketSell.ts index a37e2f8..1ecf30d 100644 --- a/examples/testPolyProxyMarketSell.ts +++ b/examples/testPolyProxyMarketSell.ts @@ -31,7 +31,7 @@ async function populateBook(client: ClobClient) { async function main() { const wallet = new ethers.Wallet(`${process.env.PK}`); - const chainId = parseInt(`${process.env.CHAIN_ID || Chain.MUMBAI}`) as Chain; + const chainId = parseInt(`${process.env.CHAIN_ID || Chain.AMOY}`) as Chain; console.log(`Address: ${await wallet.getAddress()}, chainId: ${chainId}`); const host = process.env.CLOB_API_URL || "http://localhost:8080"; diff --git a/package.json b/package.json index 113d05b..78f1c09 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@polymarket/clob-client", "description": "Typescript client for Polymarket's CLOB", - "version": "4.4.2", + "version": "4.5.0", "contributors": [ { "name": "Jonathan Amenechi", @@ -41,7 +41,7 @@ "test": "make test" }, "dependencies": { - "@polymarket/order-utils": "^2.0.0", + "@polymarket/order-utils": "^2.1.0", "axios": "^0.27.2", "browser-or-node": "^2.1.1", "ethers": "^5.7.1" diff --git a/src/config.ts b/src/config.ts index 6e1edfc..85834f6 100644 --- a/src/config.ts +++ b/src/config.ts @@ -6,12 +6,12 @@ type ContractConfig = { conditionalTokens: string; }; -const MUMBAI_CONTRACTS: ContractConfig = { - exchange: "0x4bFb41d5B3570DeFd03C39a9A4D8dE6Bd8B8982E", - negRiskAdapter: "0x9A6930BB811fe3dFE1c35e4502134B38EC54399C", - negRiskExchange: "0x87d1A0DdB4C63a6301916F02090A51a7241571e4", - collateral: "0x2E8DCfE708D44ae2e406a1c02DFE2Fa13012f961", - conditionalTokens: "0x7D8610E9567d2a6C9FBf66a5A13E9Ba8bb120d43", +const AMOY_CONTRACTS: ContractConfig = { + exchange: "0xdFE02Eb6733538f8Ea35D585af8DE5958AD99E40", + negRiskAdapter: "0xd91E80cF2E7be2e162c6513ceD06f1dD0dA35296", + negRiskExchange: "0xC5d563A36AE78145C45a50134d48A1215220f80a", + collateral: "0x9c4e1703476e875070ee25b56a58b008cfb8fa78", + conditionalTokens: "0x69308FB512518e39F9b16112fA8d994F4e2Bf8bB", }; const MATIC_CONTRACTS: ContractConfig = { @@ -29,8 +29,8 @@ const getContractConfig = (chainID: number): ContractConfig => { switch (chainID) { case 137: return MATIC_CONTRACTS; - case 80001: - return MUMBAI_CONTRACTS; + case 80002: + return AMOY_CONTRACTS; default: throw new Error("Invalid network"); } diff --git a/src/types.ts b/src/types.ts index aab5b3a..4f7c63d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -254,7 +254,7 @@ export interface Trade { export enum Chain { POLYGON = 137, - MUMBAI = 80001, + AMOY = 80002, } export interface MarketPrice { diff --git a/tests/headers/index.test.ts b/tests/headers/index.test.ts index aa2b5b6..ce6fbfa 100644 --- a/tests/headers/index.test.ts +++ b/tests/headers/index.test.ts @@ -5,7 +5,7 @@ import { Wallet } from "ethers"; import { ApiKeyCreds, Chain } from "../../src/types"; describe("headers", () => { - const chainId = Chain.MUMBAI; + const chainId = Chain.AMOY; let wallet: Wallet; let creds: ApiKeyCreds; beforeEach(() => { diff --git a/tests/order-builder/helpers.test.ts b/tests/order-builder/helpers.test.ts index 6062229..ce0be73 100644 --- a/tests/order-builder/helpers.test.ts +++ b/tests/order-builder/helpers.test.ts @@ -17,7 +17,7 @@ import { decimalPlaces, roundDown, roundNormal } from "../../src/utilities"; import { ContractConfig, getContractConfig } from "../../src/config"; describe("helpers", () => { - const chainId = Chain.MUMBAI; + const chainId = Chain.AMOY; let wallet: Wallet; let contractConfig: ContractConfig; beforeEach(() => { @@ -1788,7 +1788,7 @@ describe("helpers", () => { const signedOrder = await createOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.EOA, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -1825,7 +1825,7 @@ describe("helpers", () => { const signedOrder = await createOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.EOA, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -1862,7 +1862,7 @@ describe("helpers", () => { const signedOrder = await createOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.EOA, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -1899,7 +1899,7 @@ describe("helpers", () => { const signedOrder = await createOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.EOA, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -1937,7 +1937,7 @@ describe("helpers", () => { const signedOrder = await createOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.POLY_GNOSIS_SAFE, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -1971,7 +1971,7 @@ describe("helpers", () => { const signedOrder = await createOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.POLY_GNOSIS_SAFE, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -2005,7 +2005,7 @@ describe("helpers", () => { const signedOrder = await createOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.POLY_GNOSIS_SAFE, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -2039,7 +2039,7 @@ describe("helpers", () => { const signedOrder = await createOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.POLY_GNOSIS_SAFE, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -2078,7 +2078,7 @@ describe("helpers", () => { const signedOrder = await createOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.EOA, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -2115,7 +2115,7 @@ describe("helpers", () => { const signedOrder = await createOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.EOA, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -2152,7 +2152,7 @@ describe("helpers", () => { const signedOrder = await createOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.EOA, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -2189,7 +2189,7 @@ describe("helpers", () => { const signedOrder = await createOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.EOA, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -2227,7 +2227,7 @@ describe("helpers", () => { const signedOrder = await createOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.POLY_GNOSIS_SAFE, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -2261,7 +2261,7 @@ describe("helpers", () => { const signedOrder = await createOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.POLY_GNOSIS_SAFE, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -2295,7 +2295,7 @@ describe("helpers", () => { const signedOrder = await createOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.POLY_GNOSIS_SAFE, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -2329,7 +2329,7 @@ describe("helpers", () => { const signedOrder = await createOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.POLY_GNOSIS_SAFE, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -3355,7 +3355,7 @@ describe("helpers", () => { const signedOrder = await createMarketBuyOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.EOA, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -3391,7 +3391,7 @@ describe("helpers", () => { const signedOrder = await createMarketBuyOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.EOA, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -3427,7 +3427,7 @@ describe("helpers", () => { const signedOrder = await createMarketBuyOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.EOA, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -3463,7 +3463,7 @@ describe("helpers", () => { const signedOrder = await createMarketBuyOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.EOA, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -3503,7 +3503,7 @@ describe("helpers", () => { const signedOrder = await createMarketBuyOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.EOA, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -3539,7 +3539,7 @@ describe("helpers", () => { const signedOrder = await createMarketBuyOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.EOA, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -3575,7 +3575,7 @@ describe("helpers", () => { const signedOrder = await createMarketBuyOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.EOA, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, @@ -3611,7 +3611,7 @@ describe("helpers", () => { const signedOrder = await createMarketBuyOrder( wallet, - Chain.MUMBAI, + Chain.AMOY, SignatureType.EOA, "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", order, diff --git a/tests/signing/eip712.test.ts b/tests/signing/eip712.test.ts index 92f9aac..ee99a4a 100644 --- a/tests/signing/eip712.test.ts +++ b/tests/signing/eip712.test.ts @@ -13,13 +13,13 @@ describe("eip712", () => { }); it("buildClobEip712Signature", async () => { - const signature = await buildClobEip712Signature(wallet, Chain.MUMBAI, 10000000, 23); + const signature = await buildClobEip712Signature(wallet, Chain.AMOY, 10000000, 23); expect(signature).not.null; expect(signature).not.undefined; expect(signature).not.empty; expect(signature).equal( // eslint-disable-next-line max-len - "0xd91760ebcb14e814e9e12600b9bc7cd6bf13ebc175f6a28538b4925763f94f90012da34dd71290d441c28bc4f9b2281d3eb9ecfd1c9a63db1ce9ca85c89c914c1b", + "0xf62319a987514da40e57e2f4d7529f7bac38f0355bd88bb5adbb3768d80de6c1682518e0af677d5260366425f4361e7b70c25ae232aff0ab2331e2b164a1aedc1b", ); }); }); diff --git a/tests/utilities.test.ts b/tests/utilities.test.ts index 8a0bc7f..cdf0d20 100644 --- a/tests/utilities.test.ts +++ b/tests/utilities.test.ts @@ -246,7 +246,7 @@ describe("utilities", () => { "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"; const address = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"; const wallet = new Wallet(privateKey); - const chainId = Chain.MUMBAI; + const chainId = Chain.AMOY; const owner = "f4f247b7-4ac7-ff29-a152-04fda0a8755a"; it("GTD BUY EOA", async () => { @@ -906,7 +906,7 @@ describe("utilities", () => { "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"; const address = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"; const wallet = new Wallet(privateKey); - const chainId = Chain.MUMBAI; + const chainId = Chain.AMOY; const owner = "f4f247b7-4ac7-ff29-a152-04fda0a8755a"; it("GTD BUY EOA", async () => { @@ -1566,7 +1566,7 @@ describe("utilities", () => { "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"; const address = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"; const wallet = new Wallet(privateKey); - const chainId = Chain.MUMBAI; + const chainId = Chain.AMOY; const owner = "f4f247b7-4ac7-ff29-a152-04fda0a8755a"; it("GTD BUY EOA", async () => { @@ -2226,7 +2226,7 @@ describe("utilities", () => { "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"; const address = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"; const wallet = new Wallet(privateKey); - const chainId = Chain.MUMBAI; + const chainId = Chain.AMOY; const owner = "f4f247b7-4ac7-ff29-a152-04fda0a8755a"; it("GTD BUY EOA", async () => { @@ -2888,7 +2888,7 @@ describe("utilities", () => { "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"; const address = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"; const wallet = new Wallet(privateKey); - const chainId = Chain.MUMBAI; + const chainId = Chain.AMOY; const owner = "f4f247b7-4ac7-ff29-a152-04fda0a8755a"; it("GTD BUY EOA", async () => { @@ -3548,7 +3548,7 @@ describe("utilities", () => { "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"; const address = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"; const wallet = new Wallet(privateKey); - const chainId = Chain.MUMBAI; + const chainId = Chain.AMOY; const owner = "f4f247b7-4ac7-ff29-a152-04fda0a8755a"; it("GTD BUY EOA", async () => { @@ -4208,7 +4208,7 @@ describe("utilities", () => { "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"; const address = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"; const wallet = new Wallet(privateKey); - const chainId = Chain.MUMBAI; + const chainId = Chain.AMOY; const owner = "f4f247b7-4ac7-ff29-a152-04fda0a8755a"; it("GTD BUY EOA", async () => { @@ -4868,7 +4868,7 @@ describe("utilities", () => { "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"; const address = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"; const wallet = new Wallet(privateKey); - const chainId = Chain.MUMBAI; + const chainId = Chain.AMOY; const owner = "f4f247b7-4ac7-ff29-a152-04fda0a8755a"; it("GTD BUY EOA", async () => { diff --git a/yarn.lock b/yarn.lock index a34d086..f15314d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -697,10 +697,10 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@polymarket/order-utils@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@polymarket/order-utils/-/order-utils-2.0.0.tgz#26e2e8311248c19556f5e14d65a8f69f5bc1a98c" - integrity sha512-Ttb/m9bi1kR4ZUkdmtRxM7P7F+gfkseOiM2adAX/wXsebjn1owzZITg34pmRTwDsv89tgLEIkM6aSIDySsa/Gg== +"@polymarket/order-utils@^2.1.0": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@polymarket/order-utils/-/order-utils-2.1.0.tgz#eacf573c139e9e6c59d0244b6e4e52835b687b42" + integrity sha512-vUFj1WiEtm4vB0dxx2NweKKioPu7ehBoJ8fTTaVbR8Dur6AazVWyS+KhgrDE66fKTNneOxxgfdEpbNgxZ4pOIA== dependencies: "@metamask/eth-sig-util" "^5.0.0" ethers "^5.7.1"