corepay
Version:
A unified, secure and painless self-hosted cryptocurrency payments processor.
15 lines (12 loc) • 324 B
JavaScript
const fs = require('fs')
const path = require('path')
module.exports = {
get (symbol, standard) {
const abiPath = path.join(__dirname, 'ABIs', standard, `${symbol}.json`)
if (fs.existsSync(abiPath)) {
return require(abiPath)
} else {
return require(`./ABIs/${standard}/default.json`)
}
}
}