Skip to content

Commit

Permalink
fix: fee currency
Browse files Browse the repository at this point in the history
  • Loading branch information
Mithreum committed Jun 23, 2024
1 parent 765fde4 commit a31eabd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/factory/factory.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EmmetMultisig__factory } from "@emmet-contracts/web3";
import { EmmetMultisig__factory, EmmetBridge__factory } from "@emmet-contracts/web3";
import { tonHandler } from "../chains/ton";
import { web3Helper } from "../chains/web3";
import { Chain, type ChainFactory } from "./types";
Expand Down Expand Up @@ -62,6 +62,10 @@ export function ChainFactoryBuilder(
chainParams.multisigParams?.provider,
);

const bridge = EmmetBridge__factory.connect(
chainParams.
)

const inner = async <T extends ChainNonce>(chain: T) => {
let helper = helpers.get(chain);
if (helper === undefined) {
Expand Down
5 changes: 5 additions & 0 deletions src/factory/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export interface ChainFactory {
getTransaction: (hash: string) => Promise<DetailedTx>;
getExplorerStats: () => Promise<ExplorerMeta>;
getTxCount: () => Promise<bigint>;
getProtocolFee: () => Promise<bigint[]>;
}

export interface Transaction {
Expand Down Expand Up @@ -129,3 +130,7 @@ export interface ExplorerMeta {
totalVolume: bigint;
uniqueUser: bigint;
}

export interface IProtocolFee {

}

0 comments on commit a31eabd

Please sign in to comment.