Skip to content

Commit

Permalink
remove obsolete abis
Browse files Browse the repository at this point in the history
  • Loading branch information
janndriessen committed Feb 13, 2025
1 parent ca835f3 commit 4f1fc64
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 301 deletions.
254 changes: 0 additions & 254 deletions src/quote/swap/adapters/zeroex_v2/abis/SignatureTransfer.ts

This file was deleted.

47 changes: 0 additions & 47 deletions src/quote/swap/adapters/zeroex_v2/decode.ts
Original file line number Diff line number Diff line change
@@ -1,52 +1,5 @@
import { type Hex, decodeFunctionData, parseAbi } from 'viem'

export const IEIP712_ABI = [
{
inputs: [],
name: 'DOMAIN_SEPARATOR',
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
stateMutability: 'view',
type: 'function',
},
] as const

export const MainnetSettler = [
{
'inputs': [
{
'components': [
{ 'internalType': 'address', 'name': 'recipient', 'type': 'address' },
{
'internalType': 'contract IERC20',
'name': 'buyToken',
'type': 'address',
},
{
'internalType': 'uint256',
'name': 'minAmountOut',
'type': 'uint256',
},
],
'internalType': 'struct SettlerBase.AllowedSlippage',
'name': 'slippage',
'type': 'tuple',
},
{ 'internalType': 'bytes[]', 'name': 'actions', 'type': 'bytes[]' },
{ 'internalType': 'bytes32', 'name': '', 'type': 'bytes32' },
],
'name': 'execute',
'outputs': [{ 'internalType': 'bool', 'name': '', 'type': 'bool' }],
'stateMutability': 'payable',
'type': 'function',
},
] as const

function decodeAllowanceCallData(callData: Hex) {
const { functionName, args } = decodeFunctionData({
abi: parseAbi([
Expand Down

0 comments on commit 4f1fc64

Please sign in to comment.