Skip to main content

Class: CowShedHooks

Constructors

constructor

new CowShedHooks(chainId, customOptions?): CowShedHooks

Parameters

NameType
chainIdSupportedChainId
customOptions?ICoWShedOptions

Returns

CowShedHooks

Defined in

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

Properties

chainId

Private chainId: SupportedChainId

Defined in

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


customOptions

Private Optional customOptions: ICoWShedOptions

Defined in

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

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:57


getDomain

getDomain(proxy): TypedDataDomain

Parameters

NameType
proxystring

Returns

TypedDataDomain

Defined in

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


getFactoryAddress

getFactoryAddress(): string

Returns

string

Defined in

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


getImplementationAddress

getImplementationAddress(): string

Returns

string

Defined in

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


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:82


proxyCreationCode

proxyCreationCode(): string

Returns

string

Defined in

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


proxyOf

proxyOf(user): string

Parameters

NameType
userstring

Returns

string

Defined in

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


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:67