()
| 150 | |
| 151 | // Helper functions |
| 152 | async function signTradeObject(): Promise<any> { |
| 153 | const tradeSignature = await client.signTypedData({ |
| 154 | types: quote.trade.eip712.types, |
| 155 | domain: quote.trade.eip712.domain, |
| 156 | message: quote.trade.eip712.message, |
| 157 | primaryType: quote.trade.eip712.primaryType, |
| 158 | }); |
| 159 | console.log("🖊️ tradeSignature: ", tradeSignature); |
| 160 | return tradeSignature; |
| 161 | } |
| 162 | |
| 163 | async function signApprovalObject(): Promise<any> { |
| 164 | const approvalSignature = await client.signTypedData({ |
no outgoing calls
no test coverage detected