Skip to content

Commit

Permalink
feat: add open method to ContractProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
thekiba committed Feb 11, 2024
1 parent 1e05a46 commit 686fd67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/contract/ContractProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { TupleItem } from "../tuple/tuple";
import { Maybe } from "../utils/maybe";
import { ContractState } from "./ContractState";
import { Sender } from './Sender';
import { Contract } from "./Contract";

export type ContractGetMethodResult = {
stack: TupleReader;
Expand All @@ -25,4 +26,5 @@ export interface ContractProvider {
get(name: string, args: TupleItem[]): Promise<ContractGetMethodResult>;
external(message: Cell): Promise<void>;
internal(via: Sender, args: { value: bigint | string, bounce?: Maybe<boolean>, sendMode?: SendMode, body?: Maybe<Cell | string> }): Promise<void>;
}
open<T extends Contract>(contract: T): ContractProvider;
}

0 comments on commit 686fd67

Please sign in to comment.