Skip to content

Commit

Permalink
Add support for tx-monitor in the TypeScript REPL.
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Aug 19, 2022
1 parent f904200 commit b152278
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clients/TypeScript/packages/repl/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
getServerHealth,
Schema,
StateQuery,
TxMonitor,
TxSubmission
} from '@cardano-ogmios/client'
import chalk from 'chalk'
Expand Down Expand Up @@ -78,6 +79,11 @@ const logObject = (obj: Object) =>
stakeDistribution: () => StateQuery.stakeDistribution(context),
systemStart: () => StateQuery.systemStart(context),
submitTx: (bytes: string) => TxSubmission.submitTx(context, bytes),
awaitAcquire: () => TxMonitor.awaitAcquire(context),
hasTx: (id: Schema.TxId) => TxMonitor.hasTx(context, id),
nextTx: (args: { fields?: 'all' } = {}) => TxMonitor.nextTx(context, args),
sizeAndCapacity: () => TxMonitor.sizeAndCapacity(context),
releaseMempool: () => TxMonitor.release(context),
utxo: (filters?: Schema.Address[]|Schema.TxIn[]) => StateQuery.utxo(context, filters)
})

Expand Down

0 comments on commit b152278

Please sign in to comment.