UNPKG

@cowprotocol/cow-sdk

Version:

## 📚 [Docs website](https://docs.cow.fi/)

47 lines (46 loc) • 1.66 kB
import { EcdsaSigningScheme } from '@cowprotocol/contracts'; import { SupportedChainId } from '../../chains'; import type { Signer, TypedDataDomain } from '@ethersproject/abstract-signer'; import { CoWShedVersion } from '../../common'; import { ICoWShedCall, ICoWShedOptions } from '../types'; export declare const COW_SHED_712_TYPES: { ExecuteHooks: { type: string; name: string; }[]; Call: { type: string; name: string; }[]; }; export declare class CowShedHooks { private chainId; private customOptions?; readonly version: CoWShedVersion; constructor(chainId: SupportedChainId, customOptions?: ICoWShedOptions | undefined, version?: CoWShedVersion); proxyOf(user: string): string; encodeExecuteHooksForFactory(calls: ICoWShedCall[], nonce: string, deadline: bigint, user: string, signature: string): string; signCalls(calls: ICoWShedCall[], nonce: string, deadline: bigint, signer: Signer, signingScheme: EcdsaSigningScheme): Promise<string>; infoToSign(calls: ICoWShedCall[], nonce: string, deadline: bigint, proxy: string): { domain: TypedDataDomain; types: { ExecuteHooks: { type: string; name: string; }[]; Call: { type: string; name: string; }[]; }; message: { calls: ICoWShedCall[]; nonce: string; deadline: bigint; }; }; getDomain(proxy: string): TypedDataDomain; proxyCreationCode(): string; getFactoryAddress(): string; getImplementationAddress(): string; }