tornado-initiation-ui/plugins/provider.js
Danil Kovtonyuk 34f5cbe728 update provider
add notifications to deploy
2020-11-03 21:48:03 +10:00

20 lines
379 B
JavaScript

import { Provider } from '../services'
const MAIN_NET_ID = 1
const MAIN_NET_BLOCK_GAS_LIMIT = 7300000
const options = {
config: {
id: MAIN_NET_ID,
rpcCallRetryAttempt: 15,
blockGasLimit: MAIN_NET_BLOCK_GAS_LIMIT,
},
}
const provider = new Provider(options)
export default (context, inject) => {
inject('provider', provider)
context.$provider = provider
}