rango-types
Version:
Rango Exchange Types
26 lines (22 loc) • 668 B
text/typescript
import { TransactionType } from '../transactions.js'
/**
* Base transaction for all Rango supported transactions
*
* @property {TransactionType} type - Type of the transaction, e.g. EVM, SOLANA, COSMOS, ...
* @property {string} blockChain - The blockchain that this transaction will be executed in
*
*/
export interface BaseTransaction<
P extends BaseTransactionPrerequisite = never
> {
type: TransactionType
blockChain: string
prerequisites: P[]
}
type TransactionPrerequisitesType =
| 'STELLAR_CHANGE_TRUSTLINE'
| 'XRPL_CHANGE_TRUSTLINE'
export interface BaseTransactionPrerequisite {
type: TransactionPrerequisitesType
blockChain: string
}