1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

remove wallet setup from Cypress

This commit is contained in:
Matthias Kretschmann 2019-07-10 17:21:55 +02:00
parent 4ee5f19a9a
commit 01fb305612
Signed by: m
GPG Key ID: 606EEEF3C479A91F
6 changed files with 1201 additions and 2238 deletions

1333
client/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -39,7 +39,7 @@
"react-popper": "^1.3.3", "react-popper": "^1.3.3",
"react-router-dom": "^5.0.1", "react-router-dom": "^5.0.1",
"react-transition-group": "^4.1.1", "react-transition-group": "^4.1.1",
"truffle-hdwallet-provider": "1.0.5", "truffle-hdwallet-provider": "^1.0.13",
"web3": "1.0.0-beta.37" "web3": "1.0.0-beta.37"
}, },
"devDependencies": { "devDependencies": {

View File

@ -1,8 +1,6 @@
{ {
"baseUrl": "http://localhost:3000", "baseUrl": "http://localhost:3000",
"env": { "env": {
"NODE_URI": "https://pacific.oceanprotocol.com",
"SEEDPHRASE": "taxi music thumb unique chat sand crew more leg another off lamp",
"CONSUME_ASSET": "did:op:8f0086cf21e84389ad69b3272c56bd0ddc12cd7d98db4e02b4075c481fc2d32d" "CONSUME_ASSET": "did:op:8f0086cf21e84389ad69b3272c56bd0ddc12cd7d98db4e02b4075c481fc2d32d"
} }
} }

View File

@ -1,14 +1,3 @@
/// <reference types="Cypress" /> /// <reference types="Cypress" />
import Web3 from 'web3'
import HDWalletProvider from 'truffle-hdwallet-provider'
before(function() { before(function() {})
cy.on('window:before:load', win => {
const provider = new HDWalletProvider(
Cypress.env('SEEDPHRASE'),
Cypress.env('NODE_URI')
)
win.web3 = new Web3(provider)
win.ethereum = win.web3
})
})

2084
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -24,10 +24,7 @@
"cypress:run": "cypress run --browser chrome", "cypress:run": "cypress run --browser chrome",
"cypress:open": "cypress open" "cypress:open": "cypress open"
}, },
"dependencies": { "dependencies": {},
"truffle-hdwallet-provider": "^1.0.10",
"web3": "1.0.0-beta.37"
},
"devDependencies": { "devDependencies": {
"@release-it/bumper": "^1.0.3", "@release-it/bumper": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^1.11.0", "@typescript-eslint/eslint-plugin": "^1.11.0",