diff --git a/src/config/migrations/01.ts b/src/config/migrations/01.ts new file mode 100644 index 00000000..9c5eacda --- /dev/null +++ b/src/config/migrations/01.ts @@ -0,0 +1,18 @@ +export const version = 1 + +export function migrate (data = {}) { + try { + const migratedData = { + ...data, + endpoints: { + // @ts-ignore + ...data.endpoints, + 'test-net': 'wss://testnet.entropy.xyz' + } + } + return migratedData + } catch (e) { + console.error(`error in migration ${version}: e.message`) + } + return data +} diff --git a/src/config/migrations/index.ts b/src/config/migrations/index.ts index 8bf0e60e..5d1f18b7 100644 --- a/src/config/migrations/index.ts +++ b/src/config/migrations/index.ts @@ -1,7 +1,9 @@ import * as migration00 from './00' +import * as migration01 from './01' const migrations = [ - migration00 + migration00, + migration01, ] export default migrations diff --git a/tests/testing-utils/index.ts b/tests/testing-utils/index.ts index a83525a2..6aa09022 100644 --- a/tests/testing-utils/index.ts +++ b/tests/testing-utils/index.ts @@ -1,5 +1,5 @@ -import { spinNetworkUp, spinNetworkDown, } from "@entropyxyz/sdk/dev/testing-utils.mjs" -// import { spinNetworkUp, spinNetworkDown, } from "@entropyxyz/sdk/testing" +// @ts-ignore +import { spinNetworkUp, spinNetworkDown, } from "@entropyxyz/sdk/testing" import * as readline from 'readline' import { randomBytes } from 'crypto'