@heyanon/sdk 2.1.11 → 2.1.13

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.
@@ -13,7 +13,7 @@ type SignTypedDataParameters = Omit<ViemSignTypedDataParameters, 'account'>;
13
13
  export interface EvmFunctionOptions {
14
14
  readonly getProvider: (chainId: number) => PublicClient;
15
15
  readonly sendTransactions: (props: EVM.types.SendTransactionProps) => Promise<EVM.types.TransactionReturn>;
16
- readonly deployContracts: (props: DeployContractProps[]) => Promise<Address[]>;
16
+ readonly deployContracts: (props: DeployContractProps) => Promise<Address[]>;
17
17
  readonly signMessages?: (messages: Hex[]) => Promise<SignMessageReturnType[]>;
18
18
  readonly signTypedDatas?: (args: SignTypedDataParameters[]) => Promise<SignTypedDataReturnType[]>;
19
19
  }
@@ -18,9 +18,13 @@ export interface SendTransactionProps {
18
18
  readonly account: Address;
19
19
  readonly transactions: TransactionParams[];
20
20
  }
21
+ export interface ContractProps {
22
+ readonly abi: Abi | any[];
23
+ readonly bytecode: Hex;
24
+ readonly args?: any[];
25
+ }
21
26
  export interface DeployContractProps {
22
27
  readonly chainId: number;
23
- readonly abi: Abi | unknown[];
24
- readonly bytecode: Hex;
25
- readonly args?: unknown[];
28
+ readonly account: Address;
29
+ readonly contracts: ContractProps[];
26
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heyanon/sdk",
3
- "version": "2.1.11",
3
+ "version": "2.1.13",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",