Skip to content

Commit

Permalink
Expose txs costs (#195)
Browse files Browse the repository at this point in the history
* Expose txs costs

Depends on vocdoni/vocdoni-sdk#406

* Remove test cache

---------

Co-authored-by: Òscar Casajuana <[email protected]>
  • Loading branch information
selankon and elboletaire authored Aug 9, 2024
1 parent 38aadb2 commit c14d249
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@ jobs:
with:
node-version: 20

- name: Cache Node.js modules
uses: actions/cache@v4
with:
path: |
node_modules
yarn.lock
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: yarn
- name: Run all lint tasks
Expand Down
1 change: 1 addition & 0 deletions packages/extended-sdk/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export class ExtendedSDKClient extends VocdoniSDKClient {

transfers = (params: Partial<FetchTransfersParametersWithPagination>) => ChainAPI.transfers(this.url, params)

txCosts = () => ChainAPI.txCosts(this.url)
txInfo = (txHash: string) => ChainAPI.txInfo(this.url, txHash)
txInfoByBlock = (blockHeight: number, txIndex: number) => ChainAPI.txInfoByBlock(this.url, blockHeight, txIndex)
txByIndex = (index: number) => ChainAPI.txByIndex(this.url, index)
Expand Down

0 comments on commit c14d249

Please sign in to comment.