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/CoWShedHooks.ts:24

Properties

chainId

Private chainId: SupportedChainId

Defined in

external/cow-sdk/src/cow-shed/CoWShedHooks.ts:24


customOptions

Private Optional customOptions: ICoWShedOptions

Defined in

external/cow-sdk/src/cow-shed/CoWShedHooks.ts:24

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/CoWShedHooks.ts:38


getDomain

getDomain(proxy): TypedDataDomain

Parameters

NameType
proxystring

Returns

TypedDataDomain

Defined in

external/cow-sdk/src/cow-shed/CoWShedHooks.ts:72


getFactoryAddress

getFactoryAddress(): string

Returns

string

Defined in

external/cow-sdk/src/cow-shed/CoWShedHooks.ts:85


getImplementationAddress

getImplementationAddress(): string

Returns

string

Defined in

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


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/CoWShedHooks.ts:63


proxyCreationCode

proxyCreationCode(): string

Returns

string

Defined in

external/cow-sdk/src/cow-shed/CoWShedHooks.ts:81


proxyOf

proxyOf(user): string

Parameters

NameType
userstring

Returns

string

Defined in

external/cow-sdk/src/cow-shed/CoWShedHooks.ts:26


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/CoWShedHooks.ts:48