Skip to content

Commit

Permalink
refactor: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
yonadaaa committed May 21, 2024
1 parent b0d0313 commit a4ff4cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/commands/abigen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { CommandModule, InferredOptionTypes } from "yargs";
import { Hex, createWalletClient, http } from "viem";
import { getSystems } from "../deploy/getSystems";
import { getWorldDeploy } from "../deploy/getWorldDeploy";
import { abigen } from "@latticexyz/world/node";
import { systemFunctionSignaturesToAbi } from "@latticexyz/world/node";
import { getRpcUrl } from "@latticexyz/common/foundry";

const abigenOptions = {
Expand Down Expand Up @@ -44,7 +44,7 @@ export async function abigenHandler(opts: Options) {

const systems = await getSystems({ client, worldDeploy });

systems.map((system) => abigen(system.functions.map((func) => func.systemFunctionSignature)));
systems.map((system) => systemFunctionSignaturesToAbi(system.functions.map((func) => func.systemFunctionSignature)));
}

export default commandModule;
2 changes: 1 addition & 1 deletion packages/world/ts/node/render-solidity/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export * from "./renderSystemInterface";
export * from "./renderWorldInterface";
export * from "./types";
export * from "./worldgen";
export * from "./abigen";
export * from "./systemFunctionSignaturesToAbi";
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Abi } from "viem";

export function abigen(systemFunctionSignatures: readonly string[]): Abi {
export function systemFunctionSignaturesToAbi(systemFunctionSignatures: readonly string[]): Abi {
const abi = systemFunctionSignatures.map((systemFunctionSignature) => {
const match = systemFunctionSignature.match(/^([a-zA-Z_]\w*)\((.*)\)$/);
if (!match) {
Expand Down

0 comments on commit a4ff4cd

Please sign in to comment.