File tree 5 files changed +2
-20
lines changed
automation/src/generators/blockchain-evm/files/src/lib
5 files changed +2
-20
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " tatumio" ,
3
- "version" : " 2.2.45 " ,
3
+ "version" : " 2.2.46 " ,
4
4
"license" : " MIT" ,
5
5
"repository" : " https://github.com/tatumio/tatum-js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ const blockchain = Blockchain.<%= blockchain %>
18
18
export const Tatum<%= firstLetterUpperCaseName %>SDK = (args: SDKArguments) => {
19
19
const web3 = <%= name %>Web3({
20
20
blockchain,
21
- apiCalls: {
22
- getFee: BlockchainFeesService.getBlockchainFee,
23
- },
24
21
})
25
22
const api = <%= firstLetterUpperCaseName %>Service
26
23
const txService = <%= name %>Tx({ blockchain, web3 })
Original file line number Diff line number Diff line change @@ -6,9 +6,6 @@ import { BlockchainFeesService } from '@tatumio/api-client'
6
6
export const <%= name %>Web3 = (args: {
7
7
blockchain: EvmBasedBlockchain
8
8
client?: Web3
9
- apiCalls: {
10
- getFee: typeof BlockchainFeesService.getBlockchainFee
11
- }
12
9
}) => {
13
10
const evmBasedWeb3Result = evmBasedWeb3(args)
14
11
@@ -24,8 +21,5 @@ export const <%= name %>Web3 = (args: {
24
21
25
22
return web3
26
23
},
27
- async getGasPriceInWei(): Promise<string> {
28
- return (await args.apiCalls.getFee('<%= currency %>')).medium.toString()
29
- },
30
24
}
31
25
}
Original file line number Diff line number Diff line change @@ -15,9 +15,6 @@ const blockchain = Blockchain.FLR
15
15
export const TatumFlareSDK = ( args : SDKArguments ) => {
16
16
const web3 = flareWeb3 ( {
17
17
blockchain,
18
- apiCalls : {
19
- getFee : BlockchainFeesService . getBlockchainFee ,
20
- } ,
21
18
} )
22
19
const api = FlareService
23
20
const txService = flareTx ( { blockchain, web3 } )
Original file line number Diff line number Diff line change @@ -3,13 +3,7 @@ import Web3 from 'web3'
3
3
import { EvmBasedBlockchain } from '@tatumio/shared-core'
4
4
import { BlockchainFeesService } from '@tatumio/api-client'
5
5
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 } ) => {
13
7
const evmBasedWeb3Result = evmBasedWeb3 ( args )
14
8
15
9
return {
You canβt perform that action at this time.
0 commit comments