Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Mar 3, 2024
1 parent a8a3a1d commit e86fe08
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/types/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ export type TransactionContext<path extends string = string> = {
* Raw transaction request.
* @see https://www.notion.so/warpcast/Frame-Transactions-Public-Draft-v2-9d9f9f4f527249519a41bd8d16165f73?pvs=4#1b69c268f0684c978fbdf4d331ab8869
*/
res: TransactionResponseFn
res: TransactionResponseFn<TransactionParameters>
/**
* Send transaction request.
*
* This is a convenience method for "send transaction" requests as defined in the [Transaction Spec](https://www.notion.so/warpcast/Frame-Transactions-Public-Draft-v2-9d9f9f4f527249519a41bd8d16165f73?pvs=4#1b69c268f0684c978fbdf4d331ab8869).
*/
send: SendTransactionResponseFn
send: TransactionResponseFn<SendTransactionParameters>
}

//////////////////////////////////////////////////////
Expand Down Expand Up @@ -58,8 +58,8 @@ export type EthSendTransactionParameters<quantity = string> = {
value?: quantity
}

export type TransactionResponseFn = (
parameters: TransactionParameters,
export type TransactionResponseFn<parameters> = (
parameters: parameters,
) => TransactionResponse

//////////////////////////////////////////////////////
Expand All @@ -69,10 +69,6 @@ type SendTransactionParameters = {
chainId: `eip155:${number}`
} & EthSendTransactionParameters<bigint>

export type SendTransactionResponseFn = (
parameters: SendTransactionParameters,
) => TransactionResponse

//////////////////////////////////////////////////////
// Contract Transaction

Expand Down

0 comments on commit e86fe08

Please sign in to comment.