Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / indexer / IndexerAPICommentZeroExSwapSchemaType

Type Alias: IndexerAPICommentZeroExSwapSchemaType

type IndexerAPICommentZeroExSwapSchemaType = {
  from: {
     address: `0x${string}`;
     amount: string;
     symbol: string;
  };
  to: {
     address: `0x${string}`;
     amount: string;
     symbol: string;
  };
};

Defined in: packages/sdk/src/indexer/schemas.ts:63

Type declaration

from

from: {
  address: `0x${string}`;
  amount: string;
  symbol: string;
};

from.address

address: `0x${string}` = HexSchema;

from.amount

amount: string = IndexerAPIZeroExTokenAmountSchema;

from.symbol

symbol: string;

to

to: {
  address: `0x${string}`;
  amount: string;
  symbol: string;
};

to.address

address: `0x${string}` = HexSchema;

to.amount

amount: string = IndexerAPIZeroExTokenAmountSchema;

to.symbol

symbol: string;