Class: CowShedHooks
Constructors
constructor
• new CowShedHooks(chainId
, customOptions?
): CowShedHooks
Parameters
Name | Type |
---|---|
chainId | SupportedChainId |
customOptions? | ICoWShedOptions |
Returns
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
Name | Type |
---|---|
calls | ICoWShedCall [] |
nonce | string |
deadline | bigint |
user | string |
signature | string |
Returns
string
Defined in
external/cow-sdk/src/cow-shed/CoWShedHooks.ts:38
getDomain
▸ getDomain(proxy
): TypedDataDomain
Parameters
Name | Type |
---|---|
proxy | string |
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
Name | Type |
---|---|
calls | ICoWShedCall [] |
nonce | string |
deadline | bigint |
proxy | string |
Returns
Object
Name | Type |
---|---|
domain | TypedDataDomain |
message | { calls : ICoWShedCall [] ; deadline : bigint ; nonce : string } |
message.calls | ICoWShedCall [] |
message.deadline | bigint |
message.nonce | string |
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
Name | Type |
---|---|
user | string |
Returns
string
Defined in
external/cow-sdk/src/cow-shed/CoWShedHooks.ts:26
signCalls
▸ signCalls(calls
, nonce
, deadline
, signer
, signingScheme
): Promise
<string
>
Parameters
Name | Type |
---|---|
calls | ICoWShedCall [] |
nonce | string |
deadline | bigint |
signer | Signer |
signingScheme | EcdsaSigningScheme |
Returns
Promise
<string
>
Defined in
external/cow-sdk/src/cow-shed/CoWShedHooks.ts:48