@heyanon/sdk 1.0.3 → 1.0.4
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AiTool } from '../ai';
|
|
2
|
-
import { ChainId,
|
|
2
|
+
import { ChainId, SendTransactionProps, TransactionReturn } from '../blockchain';
|
|
3
3
|
import { PublicClient } from 'viem';
|
|
4
4
|
export interface FunctionReturn {
|
|
5
5
|
readonly success: boolean;
|
|
@@ -7,7 +7,7 @@ export interface FunctionReturn {
|
|
|
7
7
|
}
|
|
8
8
|
export interface FunctionOptions {
|
|
9
9
|
readonly getProvider: (chainId: ChainId) => PublicClient;
|
|
10
|
-
readonly
|
|
10
|
+
readonly sendTransactions: (props: SendTransactionProps) => Promise<TransactionReturn>;
|
|
11
11
|
readonly notify: (message: string) => Promise<any>;
|
|
12
12
|
}
|
|
13
13
|
export interface AdapterExport {
|
|
@@ -13,7 +13,7 @@ export interface TransactionReturn {
|
|
|
13
13
|
readonly isMultisig: boolean;
|
|
14
14
|
readonly data: TransactionReturnData[];
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface SendTransactionProps {
|
|
17
17
|
readonly chainId: number;
|
|
18
18
|
readonly account: Address;
|
|
19
19
|
readonly transactions: TransactionParams[];
|