mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-21 16:52:00 -07:00
Syncing with upstream. Fixing merge conflicts, converting to ES6
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
/*
|
||||
Mocks for the Adapter library.
|
||||
*/
|
||||
const BCHJS = require('@psf/bch-js')
|
||||
import BCHJS from '@psf/bch-js';
|
||||
|
||||
const bchjs = new BCHJS()
|
||||
|
||||
class IpfsAdapter {
|
||||
@@ -129,7 +130,8 @@ const bch = {
|
||||
// burnPsf: async () => {},
|
||||
// generateSignature: async () => {}
|
||||
// }
|
||||
const { MockBchWallet } = require('./wallet')
|
||||
import { MockBchWallet } from './wallet';
|
||||
|
||||
const wallet = {
|
||||
burnPsf: async () => {
|
||||
},
|
||||
@@ -148,4 +150,4 @@ const p2wdb = {
|
||||
checkForSufficientFunds: async () => true
|
||||
}
|
||||
|
||||
module.exports = { ipfs, localdb, bch, wallet, p2wdb, bchjs}
|
||||
export default { ipfs, localdb, bch, wallet, p2wdb, bchjs}
|
||||
|
||||
Reference in New Issue
Block a user