Skip to content

Commit

Permalink
feat(rpc): export formatter as helpers in rpc module
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed May 9, 2019
1 parent 157bdee commit 160aa1c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/ckb-sdk-rpc/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@ import DefaultRPC from './defaultRPC'
import { DebugLevel } from './enum'
import Method from './method'

import paramsFormatter from './paramsFormatter'
import resultFormatter from './resultFormatter'

class CKBRPC extends DefaultRPC {
private _node: CKBComponents.Node

private _methods: Method[] = []

public paramsFormatter = paramsFormatter

public resultFormatter = resultFormatter

public setDebugLevel = (level: DebugLevel) => {
Method.debugLevel = level
}
Expand Down

0 comments on commit 160aa1c

Please sign in to comment.