UNPKG

@paraswap/sdk

Version:
64 lines 2.06 kB
export type DeltaAuctionOrder = { /** @description The address of the order owner */ owner: string; /** @description The address of the order beneficiary */ beneficiary: string; /** @description The address of the src token */ srcToken: string; /** @description The address of the dest token */ destToken: string; /** @description The amount of src token to swap */ srcAmount: string; /** @description The minimum amount of dest token to receive */ destAmount: string; /** @description The expected amount of dest token to receive */ expectedDestAmount: string; /** @description The deadline for the order */ deadline: number; /** @description The nonce of the order */ nonce: string; /** @description Optional permit signature for the src token */ permit: string; /** @description Encoded partner address, fee bps, and flags for the order. partnerAndFee = (partner << 96) | (partnerTakesSurplus << 8) | fee in bps (max fee is 2%) */ partnerAndFee: string; }; type DeltaAuctionStatus = 'NOT_STARTED' | 'POSTED' | 'RUNNING' | 'EXECUTING' | 'EXECUTED' | 'FAILED' | 'EXPIRED'; type DeltaAuctionTransaction = { id: string; hash: string; blockNumber: number; blockHash: string; gasUsed: bigint; gasPrice: bigint; blobGasUsed: bigint; blobGasPrice: bigint; index: number; status: number; from: string; to: string; receivedAmount: string; spentAmount: string; filledPercent: number; protocolFee: string; partnerFee: string; agent: string; auctionId: string; }; export type ParaswapDeltaAuction = { id: string; deltaVersion: string; user: string; signature: string; status: DeltaAuctionStatus; order: DeltaAuctionOrder; orderHash: string; transactions: DeltaAuctionTransaction[]; chainId: number; partner: string; expiresAt: string; createdAt: string; updatedAt: string; partiallyFillable: boolean; }; export {}; //# sourceMappingURL=types.d.ts.map