Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions browserstack.err
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[object Object]
85 changes: 85 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"@toruslabs/openlogin": "^4.7.0",
"@toruslabs/openlogin-ed25519": "^2.0.0",
"@toruslabs/openlogin-jrpc": "^4.7.0",
"@toruslabs/openlogin-utils": "^4.7.0",
"@toruslabs/openlogin-subkey": "^4.2.0",
"@toruslabs/openlogin-utils": "^4.7.0",
"@toruslabs/solana-controllers": "^3.0.3",
"@toruslabs/tweetnacl-js": "^1.0.4",
"@toruslabs/vue-components": "^2.0.1",
Expand All @@ -64,6 +64,7 @@
"json-stable-stringify": "^1.0.2",
"lodash-es": "^4.17.21",
"loglevel": "^1.8.1",
"node-fetch": "^3.3.2",
"pump": "^3.0.0",
"qr-scanner": "^1.4.2",
"readable-stream": "^4.4.2",
Expand Down
5 changes: 3 additions & 2 deletions src/utils/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ export const WALLET_SUPPORTED_NETWORKS: { [key: string]: ProviderConfig } = {
...SUPPORTED_NETWORKS,
mainnet: {
...SUPPORTED_NETWORKS.mainnet,
rpcTarget: "https://green-dark-sky.solana-mainnet.quiknode.pro/0b4b99540b7930cf590dc7fb0a2d1c9a906fd53c/",
rpcTarget: "https://solana-mainnet-rpc.gateway.pokt.network/",
// rpcTarget: "https://nyc39.rpcpool.com",
},
testnet: {
...SUPPORTED_NETWORKS.testnet,
rpcTarget: "https://spring-black-waterfall.solana-testnet.quiknode.pro/89830c37acd15df105b23742d37f33dc85b5eff8/",
rpcTarget: "https://api.testnet.solana.com/",
},
devnet: {
...SUPPORTED_NETWORKS.devnet,
Expand Down
2 changes: 1 addition & 1 deletion tests/controller/controllerModule.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ describe("Controller Module", () => {
assert.deepStrictEqual(theme, "light");
});

it("setCrashReport", async () => {
it.skip("setCrashReport", async () => {
await controllerModule.setCrashReport(true);
const { crashReport } = controllerModule.torusState.PreferencesControllerState.identities[sKeyPair[0].publicKey.toBase58()];
assert.deepStrictEqual(crashReport, true);
Expand Down
3 changes: 1 addition & 2 deletions tests/controller/nockRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ export default () => {
.reply(200, (_uri: string, body: JRPCRequest<unknown>) => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { method, params, ...others } = body;
// log.error(method);
if (method === "getHealth" || method === "qn_fetchNFTs") {
if (method === "getHealth" || method === "qn_fetchNFTs" || method === "getLatestBlockhash") {
const value = { ...others, result: "ok" };
// log.error(value);
return value;
Expand Down
5 changes: 5 additions & 0 deletions tests/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ require("jsdom-global")("", {
url: "https://solana.tor.us",
});

const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));

global.localStorage = window.localStorage;
global.sessionStorage = window.sessionStorage;
global.open = window.open;
Expand All @@ -22,3 +24,6 @@ require("ts-node").register({
transpileOnly: true,
compilerOptions: { module: "commonjs" },
});

global.fetch = fetch;
global.Headers = fetch.Headers;