Skip to main content

Class: CowShedHooks

Constructors

constructor

new CowShedHooks(chainId, customOptions?, version?): CowShedHooks

Parameters

NameTypeDefault value
chainIdSupportedChainIdundefined
customOptions?ICoWShedOptionsundefined
versionCoWShedVersionCOW_SHED_LATEST_VERSION

Returns

CowShedHooks

Defined in

external/cow-sdk/src/cow-shed/contracts/CoWShedHooks.ts:46

Properties

chainId

Private chainId: SupportedChainId

Defined in

external/cow-sdk/src/cow-shed/contracts/CoWShedHooks.ts:47


customOptions

Private Optional customOptions: ICoWShedOptions

Defined in

external/cow-sdk/src/cow-shed/contracts/CoWShedHooks.ts:48


version

Readonly version: CoWShedVersion = COW_SHED_LATEST_VERSION

Defined in

external/cow-sdk/src/cow-shed/contracts/CoWShedHooks.ts:49

Methods

encodeExecuteHooksForFactory

encodeExecuteHooksForFactory(calls, nonce, deadline, user, signature): string

Parameters

NameType
callsICoWShedCall[]
noncestring
deadlinebigint
userstring
signaturestring

Returns

string

Defined in

external/cow-sdk/src/cow-shed/contracts/CoWShedHooks.ts:64


getDomain

getDomain(proxy): TypedDataDomain

Parameters

NameType
proxystring

Returns

TypedDataDomain

Defined in

external/cow-sdk/src/cow-shed/contracts/CoWShedHooks.ts:98


getFactoryAddress

getFactoryAddress(): string

Returns

string

Defined in

external/cow-sdk/src/cow-shed/contracts/CoWShedHooks.ts:111


getImplementationAddress

getImplementationAddress(): string

Returns

string

Defined in

external/cow-sdk/src/cow-shed/contracts/CoWShedHooks.ts:115


infoToSign

infoToSign(calls, nonce, deadline, proxy): Object

Parameters

NameType
callsICoWShedCall[]
noncestring
deadlinebigint
proxystring

Returns

Object

NameType
domainTypedDataDomain
message{ calls: ICoWShedCall[] ; deadline: bigint ; nonce: string }
message.callsICoWShedCall[]
message.deadlinebigint
message.noncestring
types{ Call: { name: string = 'target'; type: string = 'address' }[] ; ExecuteHooks: { name: string = 'calls'; type: string = 'Call[]' }[] }
types.Call{ name: string = 'target'; type: string = 'address' }[]
types.ExecuteHooks{ name: string = 'calls'; type: string = 'Call[]' }[]

Defined in

external/cow-sdk/src/cow-shed/contracts/CoWShedHooks.ts:89


proxyCreationCode

proxyCreationCode(): string

Returns

string

Defined in

external/cow-sdk/src/cow-shed/contracts/CoWShedHooks.ts:107


proxyOf

proxyOf(user): string

Parameters

NameType
userstring

Returns

string

Defined in

external/cow-sdk/src/cow-shed/contracts/CoWShedHooks.ts:52


signCalls

signCalls(calls, nonce, deadline, signer, signingScheme): Promise<string>

Parameters

NameType
callsICoWShedCall[]
noncestring
deadlinebigint
signerSigner
signingSchemeEcdsaSigningScheme

Returns

Promise<string>

Defined in

external/cow-sdk/src/cow-shed/contracts/CoWShedHooks.ts:74