From c14d2497219d50d897781d8451f8de7a09ed94f9 Mon Sep 17 00:00:00 2001 From: selankon Date: Fri, 9 Aug 2024 08:28:21 -0500 Subject: [PATCH] Expose txs costs (#195) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Expose txs costs Depends on https://github.com/vocdoni/vocdoni-sdk/pull/406 * Remove test cache --------- Co-authored-by: Òscar Casajuana --- .github/workflows/test.yml | 10 ---------- packages/extended-sdk/src/client/index.ts | 1 + 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 37f383dd..b398499d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/packages/extended-sdk/src/client/index.ts b/packages/extended-sdk/src/client/index.ts index 4d7fafff..2f915bf4 100644 --- a/packages/extended-sdk/src/client/index.ts +++ b/packages/extended-sdk/src/client/index.ts @@ -81,6 +81,7 @@ export class ExtendedSDKClient extends VocdoniSDKClient { transfers = (params: Partial) => 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)