Skip to content

Commit

Permalink
Revert "update"
Browse files Browse the repository at this point in the history
This reverts commit 26260b4.
  • Loading branch information
rouzwelt committed Jan 20, 2025
1 parent 523a3a3 commit a13cdcb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@opentelemetry/sdk-trace-base": "^1.22.0",
"@opentelemetry/semantic-conventions": "^1.22.0",
"@rainlanguage/dotrain": "^6.0.1-alpha.21",
"@rainlanguage/orderbook": "^0.0.1-alpha.1",
"@rainlanguage/orderbook": "^0.0.1-alpha.6",
"axios": "^1.3.4",
"commander": "^11.0.0",
"dotenv": "^16.0.3",
Expand Down
5 changes: 2 additions & 3 deletions src/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Dispair, ViemClient } from "./types";
import { parseAbi, PublicClient, stringToHex } from "viem";
import { MetaStore, RainDocument } from "@rainlanguage/dotrain";

export const metaStore = new MetaStore();
export const TaskEntryPoint = ["main"] as const;
export const EnsureBountyDotrain = fs.readFileSync("./tasks/ensure-bounty.rain", {
encoding: "utf8",
Expand All @@ -30,7 +29,7 @@ export async function getBountyEnsureRainlang(
return await RainDocument.composeText(
EnsureBountyDotrain,
TaskEntryPoint as any as string[],
metaStore,
new MetaStore(),
[
["sender", sender],
["input-to-eth-price", utils.formatUnits(inputToEthPrice)],
Expand Down Expand Up @@ -66,7 +65,7 @@ export async function getWithdrawEnsureRainlang(
return await RainDocument.composeText(
WithdrawEnsureBountyDotrain,
TaskEntryPoint as any as string[],
metaStore,
new MetaStore(),
[
["sender", sender],
["bot-address", botAddress],
Expand Down
6 changes: 2 additions & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,6 @@ export async function quoteOrders(
gas?: bigint,
multicallAddressOverride?: string,
): Promise<BundledOrders[][]> {
gas;
let quoteResults: any[] = [];
const targets = orderDetails.flatMap((v) =>
v.flatMap((list) =>
Expand All @@ -771,7 +770,7 @@ export async function quoteOrders(
targets,
rpc,
blockNumber,
// gas,
gas,
multicallAddressOverride,
);
break;
Expand Down Expand Up @@ -832,7 +831,6 @@ export async function quoteSingleOrder(
gas?: bigint,
multicallAddressOverride?: string,
) {
gas;
for (let i = 0; i < rpcs.length; i++) {
const rpc = rpcs[i];
try {
Expand All @@ -846,7 +844,7 @@ export async function quoteSingleOrder(
] as any as QuoteTarget[],
rpc,
blockNumber,
// gas,
gas,
multicallAddressOverride,
)
)[0];
Expand Down

0 comments on commit a13cdcb

Please sign in to comment.