Skip to content

Commit

Permalink
type refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith committed May 5, 2024
1 parent 614d407 commit bd91be9
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 92 deletions.
2 changes: 1 addition & 1 deletion src/chains/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
NearContractFunctionPayload,
TxPayload,
TransactionWithSignature,
} from "../types";
} from "../types/types";
import { MultichainContract } from "../mpcContract";
import BN from "bn.js";
import { queryGasPrice } from "../utils/gasPrice";
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from "./chains/ethereum";
export * from "./mpcContract";
export * from "./chains/near";
export * from "./types";
export * from "./types/types";
export * from "./network";
2 changes: 1 addition & 1 deletion src/mpcContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
MPCSignature,
NearContractFunctionPayload,
SignArgs,
} from "./types";
} from "./types/types";

interface MultichainContractInterface extends Contract {
// Define the signature for the `public_key` view method
Expand Down
87 changes: 0 additions & 87 deletions src/types.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/utils/gasPrice.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GasPrices } from "../types";
import { GasPrices } from "../types/types";

interface GasPriceResponse {
code: number;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
serializeTransaction,
signatureToHex,
} from "viem";
import { TransactionWithSignature } from "../types";
import { TransactionWithSignature } from "../types/types";
import { secp256k1 } from "@noble/curves/secp256k1";

import { publicKeyToAddress } from "viem/utils";
Expand Down

0 comments on commit bd91be9

Please sign in to comment.