Skip to content

Commit 689c103

Browse files
committed
ALL-4358 Update Flare web3
1 parent 8989a30 commit 689c103

File tree

7 files changed

+4
-22
lines changed

7 files changed

+4
-22
lines changed

β€Žpackage.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tatumio",
3-
"version": "2.2.45",
3+
"version": "2.2.46",
44
"license": "MIT",
55
"repository": "https://github.com/tatumio/tatum-js",
66
"scripts": {

β€Žpackages/automation/src/generators/blockchain-evm/files/src/lib/__name__.sdk.ts__template__

-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ const blockchain = Blockchain.<%= blockchain %>
1818
export const Tatum<%= firstLetterUpperCaseName %>SDK = (args: SDKArguments) => {
1919
const web3 = <%= name %>Web3({
2020
blockchain,
21-
apiCalls: {
22-
getFee: BlockchainFeesService.getBlockchainFee,
23-
},
2421
})
2522
const api = <%= firstLetterUpperCaseName %>Service
2623
const txService = <%= name %>Tx({ blockchain, web3 })

β€Žpackages/automation/src/generators/blockchain-evm/files/src/lib/services/__name__.web3.ts__template__

-6
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ import { BlockchainFeesService } from '@tatumio/api-client'
66
export const <%= name %>Web3 = (args: {
77
blockchain: EvmBasedBlockchain
88
client?: Web3
9-
apiCalls: {
10-
getFee: typeof BlockchainFeesService.getBlockchainFee
11-
}
129
}) => {
1310
const evmBasedWeb3Result = evmBasedWeb3(args)
1411

@@ -24,8 +21,5 @@ export const <%= name %>Web3 = (args: {
2421

2522
return web3
2623
},
27-
async getGasPriceInWei(): Promise<string> {
28-
return (await args.apiCalls.getFee('<%= currency %>')).medium.toString()
29-
},
3024
}
3125
}

β€Žpackages/blockchain/egld/src/lib/__tests__/egld.tx.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('EgldSDK - virtual account tx', () => {
2626
expect(parsedTx.sender).toBe(testData.ADDRESS_0)
2727
expect(parsedTx.receiver).toBe(ESDT_SYSTEM_SMART_CONTRACT_ADDRESS)
2828
expect(parsedTx.signature).toBeDefined()
29-
})
29+
}, 10000)
3030

3131
it('should prepare send ESDT signed transaction', async () => {
3232
const tx = await sdk.transaction.prepare.signedTransaction({

β€Žpackages/blockchain/flare/src/lib/flare.sdk.ts

-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ const blockchain = Blockchain.FLR
1515
export const TatumFlareSDK = (args: SDKArguments) => {
1616
const web3 = flareWeb3({
1717
blockchain,
18-
apiCalls: {
19-
getFee: BlockchainFeesService.getBlockchainFee,
20-
},
2118
})
2219
const api = FlareService
2320
const txService = flareTx({ blockchain, web3 })

β€Žpackages/blockchain/flare/src/lib/services/flare.web3.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,7 @@ import Web3 from 'web3'
33
import { EvmBasedBlockchain } from '@tatumio/shared-core'
44
import { BlockchainFeesService } from '@tatumio/api-client'
55

6-
export const flareWeb3 = (args: {
7-
blockchain: EvmBasedBlockchain
8-
client?: Web3
9-
apiCalls: {
10-
getFee: typeof BlockchainFeesService.getBlockchainFee
11-
}
12-
}) => {
6+
export const flareWeb3 = (args: { blockchain: EvmBasedBlockchain; client?: Web3 }) => {
137
const evmBasedWeb3Result = evmBasedWeb3(args)
148

159
return {

β€Žpackages/blockchain/polygon/src/lib/polygon.sdk.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('TatumPolygonSDK', () => {
3838

3939
expect(client.result).toBeDefined()
4040
expect(String(client.result).length).toBeGreaterThan(0)
41-
})
41+
}, 10000)
4242

4343
it('should return valid web3 client with privateKey', async () => {
4444
const web3 = evmBasedWeb3({ blockchain: Blockchain.POLYGON })

0 commit comments

Comments
Β (0)