@heyanon/sdk 2.2.0 → 2.2.2

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.
@@ -12,6 +12,7 @@ export interface FunctionReturn {
12
12
  }
13
13
  type SignTypedDataParameters = Omit<ViemSignTypedDataParameters, 'account'>;
14
14
  export interface EvmFunctionOptions {
15
+ readonly getAddress: () => Promise<Address>;
15
16
  readonly getProvider: (chainId: number) => PublicClient;
16
17
  readonly sendTransactions: (props: EVM.types.SendTransactionProps) => Promise<EVM.types.TransactionReturn>;
17
18
  readonly deployContracts: (props: DeployContractProps) => Promise<Address[]>;
@@ -44,6 +45,13 @@ export interface FunctionOptions {
44
45
  readonly getRecipient: (type: WalletType) => Promise<string>;
45
46
  readonly getUserTokens: () => Promise<UserToken[]>;
46
47
  readonly getCcxtExchange: (name: keyof typeof exchanges) => Promise<Exchange>;
48
+ readonly updateUserTokens: (props: {
49
+ evmAddresses: string[];
50
+ solanaAddresses: string[];
51
+ tonAddresses: string[];
52
+ }) => Promise<{
53
+ [key: string]: string;
54
+ }>;
47
55
  }
48
56
  export interface AdapterExport {
49
57
  readonly tools: AiTool[];
@@ -10,7 +10,6 @@ export interface TransactionReturnData {
10
10
  readonly hash: Hex;
11
11
  }
12
12
  export interface TransactionReturn {
13
- readonly isMultisig: boolean;
14
13
  readonly data: TransactionReturnData[];
15
14
  }
16
15
  export interface SendTransactionProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heyanon/sdk",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",