@heyanon/sdk 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapter/types.d.ts +2 -2
- package/package.json +1 -1
package/dist/adapter/types.d.ts
CHANGED
|
@@ -5,13 +5,13 @@ export interface FunctionReturn {
|
|
|
5
5
|
readonly success: boolean;
|
|
6
6
|
readonly data: string;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface FunctionOptions {
|
|
9
9
|
readonly getProvider: (chainId: ChainId) => PublicClient;
|
|
10
10
|
readonly signTransactions: (props: SignTransactionProps) => Promise<TransactionReturn>;
|
|
11
11
|
readonly notify: (message: string) => Promise<any>;
|
|
12
12
|
}
|
|
13
13
|
export interface AdapterExport {
|
|
14
14
|
readonly tools: AiTool[];
|
|
15
|
-
readonly functions: Record<string, (args: any, options:
|
|
15
|
+
readonly functions: Record<string, (args: any, options: FunctionOptions) => PromiseLike<FunctionReturn>>;
|
|
16
16
|
readonly description: string;
|
|
17
17
|
}
|