Skip to content

Instantly share code, notes, and snippets.

View promaty's full-sized avatar

Martynas Prokopas promaty

View GitHub Profile
import { providers, utils } from 'ethers'
type apiType = 'ws' | 'rpc'
// const { ETH_API_URL, ETH_API_TYPE } = process.env
class Eth {
provider!: providers.BaseProvider
constructor(apiUrl: string, apiType: apiType) {
this.setProvider(apiUrl, apiType)
/*************** Migrations ***************/
exports.up = function(knex) {
return knex.schema.withSchema('ObjectionTest')
.createTable('Users', function (table) {
table.increments('id')
table.integer('user_email_id')
table.string('address')

Keybase proof

I hereby claim:

  • I am promaty on github.
  • I am promaty (https://keybase.io/promaty) on keybase.
  • I have a public key ASBrtZZM5MWjDkguub7PP65YOmZ8fs2lCx5Y2FKKzVaaygo

To claim this, I am signing this object: