UNPKG

barterjs-sdk

Version:
8 lines (7 loc) 721 B
import { BarterTransactionReceipt, BarterTransactionResponse } from '../types/responseTypes'; import { FinalExecutionOutcome } from 'near-api-js/lib/providers'; import { BarterProviderType, BarterReceiptType } from '../types/paramTypes'; export declare function adaptEthReceipt(transactionReceipt: BarterReceiptType): BarterTransactionReceipt; export declare function adaptNearReceipt(finalExecutionOutcome: FinalExecutionOutcome): BarterTransactionReceipt; export declare function assembleNearTransactionResponse(executionOutcome: FinalExecutionOutcome): BarterTransactionResponse; export declare function assembleEVMTransactionResponse(transactionHash: string, provider: BarterProviderType): BarterTransactionResponse;