mirror of
https://github.com/oceanprotocol/react.git
synced 2025-02-14 21:10:38 +01:00
Merge branch 'master' of https://github.com/oceanprotocol/react
This commit is contained in:
commit
08c41d793e
8
.github/dependabot.yml
vendored
Normal file
8
.github/dependabot.yml
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: npm
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: weekly
|
||||
time: '03:00'
|
||||
timezone: Europe/Berlin
|
1239
package-lock.json
generated
1239
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
20
package.json
20
package.json
@ -26,19 +26,19 @@
|
||||
"web3connect": "^1.0.0-beta.33"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@release-it/bumper": "^1.1.1",
|
||||
"@types/react": "^16.9.34",
|
||||
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
||||
"@typescript-eslint/parser": "^2.34.0",
|
||||
"auto-changelog": "^2.0.0",
|
||||
"eslint": "^7.0.0",
|
||||
"@release-it/bumper": "^1.4.0",
|
||||
"@types/react": "^16.9.41",
|
||||
"@typescript-eslint/eslint-plugin": "^3.6.0",
|
||||
"@typescript-eslint/parser": "^3.6.0",
|
||||
"auto-changelog": "^2.2.0",
|
||||
"eslint": "^7.4.0",
|
||||
"eslint-config-oceanprotocol": "^1.5.0",
|
||||
"eslint-config-prettier": "^6.11.0",
|
||||
"eslint-plugin-prettier": "^3.1.3",
|
||||
"eslint-plugin-react": "^7.19.0",
|
||||
"eslint-plugin-prettier": "^3.1.4",
|
||||
"eslint-plugin-react": "^7.20.3",
|
||||
"prettier": "^2.0.5",
|
||||
"release-it": "^13.5.6",
|
||||
"typescript": "^3.8.3"
|
||||
"release-it": "^13.6.4",
|
||||
"typescript": "^3.9.6"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": ">=16.8.0"
|
||||
|
@ -3,7 +3,7 @@ import { DID, MetaDataAlgorithm, Logger } from '@oceanprotocol/squid'
|
||||
import { useOcean } from '../../providers'
|
||||
import { ComputeValue } from './ComputeOptions'
|
||||
import { feedback } from './../../utils'
|
||||
import { LoggerInstance } from '@oceanprotocol/squid/dist/node/utils/Logger'
|
||||
|
||||
interface UseCompute {
|
||||
compute: (
|
||||
did: DID | string,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { useState } from 'react'
|
||||
import { Logger, DDO, ComputeJob } from '@oceanprotocol/squid'
|
||||
import { Logger, DDO } from '@oceanprotocol/squid'
|
||||
import { useOcean } from '../../providers'
|
||||
import {
|
||||
SearchQuery,
|
||||
|
@ -1,6 +1,5 @@
|
||||
import React, { useContext, useState, useEffect, createContext } from 'react'
|
||||
import { Ocean, Config, Account, Aquarius, Logger } from '@oceanprotocol/squid'
|
||||
import Web3 from 'web3'
|
||||
import Balance from '@oceanprotocol/squid/dist/node/models/Balance'
|
||||
import { connectOcean } from './utils'
|
||||
import { useWeb3, InjectedProviderStatus } from '../Web3Provider'
|
||||
|
@ -9,7 +9,7 @@ export declare type GetRatingResponse = {
|
||||
vote: number
|
||||
}
|
||||
|
||||
export function gethash(message: string) {
|
||||
export function gethash(message: string): string {
|
||||
let hex = ''
|
||||
for (let i = 0; i < message.length; i++) {
|
||||
hex += '' + message.charCodeAt(i).toString(16)
|
||||
|
Loading…
Reference in New Issue
Block a user