mirror of
https://github.com/oceanprotocol/react.git
synced 2024-11-22 01:37:03 +01:00
Bump prettier from 2.2.1 to 2.3.0 (#307)
* Bump prettier from 2.2.1 to 2.3.0 Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.0. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.0) Signed-off-by: dependabot[bot] <support@github.com> * prettier updates Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
This commit is contained in:
parent
94527e9ca4
commit
9d2c0f3c63
@ -17,8 +17,7 @@ export function Publish() {
|
|||||||
license: 'MIT',
|
license: 'MIT',
|
||||||
files: [
|
files: [
|
||||||
{
|
{
|
||||||
url:
|
url: 'https://raw.githubusercontent.com/tbertinmahieux/MSongsDB/master/Tasks_Demos/CoverSongs/shs_dataset_test.txt',
|
||||||
'https://raw.githubusercontent.com/tbertinmahieux/MSongsDB/master/Tasks_Demos/CoverSongs/shs_dataset_test.txt',
|
|
||||||
checksum: 'efb2c764274b745f5fc37f97c6b0e761',
|
checksum: 'efb2c764274b745f5fc37f97c6b0e761',
|
||||||
contentLength: '4535431',
|
contentLength: '4535431',
|
||||||
contentType: 'text/csv',
|
contentType: 'text/csv',
|
||||||
|
24242
package-lock.json
generated
24242
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
21
package.json
21
package.json
@ -25,30 +25,29 @@
|
|||||||
"dist/"
|
"dist/"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@oceanprotocol/lib": "^0.14.3",
|
"@oceanprotocol/lib": "^0.14.9",
|
||||||
"axios": "^0.21.1",
|
"axios": "^0.21.1",
|
||||||
"decimal.js": "^10.2.1",
|
"decimal.js": "^10.2.1",
|
||||||
"web3": "^1.3.4",
|
"web3": "^1.3.6",
|
||||||
"web3modal": "^1.9.3"
|
"web3modal": "^1.9.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@release-it/bumper": "^2.0.0",
|
"@release-it/bumper": "^2.0.0",
|
||||||
"@types/node-fetch": "^2.5.7",
|
"@types/node-fetch": "^2.5.7",
|
||||||
"@types/react": "^17.0.0",
|
"@types/react": "^17.0.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.16.1",
|
"@typescript-eslint/eslint-plugin": "^4.25.0",
|
||||||
"@typescript-eslint/parser": "^4.16.1",
|
"@typescript-eslint/parser": "^4.25.0",
|
||||||
"auto-changelog": "^2.2.1",
|
"auto-changelog": "^2.2.1",
|
||||||
"eslint": "^7.21.0",
|
"eslint": "^7.27.0",
|
||||||
"eslint-config-oceanprotocol": "^1.5.0",
|
"eslint-config-oceanprotocol": "^1.5.0",
|
||||||
"eslint-config-prettier": "^8.1.0",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
"eslint-plugin-prettier": "^3.3.1",
|
"eslint-plugin-prettier": "^3.4.0",
|
||||||
"eslint-plugin-react": "^7.22.0",
|
|
||||||
"eslint-plugin-react-hooks": "^4.2.0",
|
"eslint-plugin-react-hooks": "^4.2.0",
|
||||||
"microbundle": "^0.13.0",
|
"microbundle": "^0.13.0",
|
||||||
"prettier": "^2.2.1",
|
"prettier": "^2.3.0",
|
||||||
"release-it": "^14.4.1",
|
"release-it": "^14.7.0",
|
||||||
"serialize-javascript": "^5.0.1",
|
"serialize-javascript": "^5.0.1",
|
||||||
"typescript": "^4.2.2"
|
"typescript": "^4.2.4"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": ">=16.8.0"
|
"react": ">=16.8.0"
|
||||||
|
@ -220,13 +220,8 @@ function usePricing(ddo: DDO): UsePricing {
|
|||||||
): Promise<TransactionReceipt | void> {
|
): Promise<TransactionReceipt | void> {
|
||||||
if (!ocean || !accountId || !dtSymbol) return
|
if (!ocean || !accountId || !dtSymbol) return
|
||||||
|
|
||||||
const {
|
const { type, oceanAmount, price, weightOnDataToken, swapFee } =
|
||||||
type,
|
priceOptions
|
||||||
oceanAmount,
|
|
||||||
price,
|
|
||||||
weightOnDataToken,
|
|
||||||
swapFee
|
|
||||||
} = priceOptions
|
|
||||||
|
|
||||||
let { dtAmount } = priceOptions
|
let { dtAmount } = priceOptions
|
||||||
const isPool = type === 'dynamic'
|
const isPool = type === 'dynamic'
|
||||||
|
@ -68,13 +68,14 @@ function usePublish(): UsePublish {
|
|||||||
switch (serviceType) {
|
switch (serviceType) {
|
||||||
case 'access': {
|
case 'access': {
|
||||||
if (!timeout) timeout = 0
|
if (!timeout) timeout = 0
|
||||||
const accessService = await ocean.assets.createAccessServiceAttributes(
|
const accessService =
|
||||||
account,
|
await ocean.assets.createAccessServiceAttributes(
|
||||||
price,
|
account,
|
||||||
publishedDate,
|
price,
|
||||||
timeout,
|
publishedDate,
|
||||||
providerUri
|
timeout,
|
||||||
)
|
providerUri
|
||||||
|
)
|
||||||
Logger.log('access service created', accessService)
|
Logger.log('access service created', accessService)
|
||||||
services.push(accessService)
|
services.push(accessService)
|
||||||
break
|
break
|
||||||
|
@ -62,9 +62,8 @@ function OceanProvider({
|
|||||||
const [accountId, setAccountId] = useState<string | undefined>()
|
const [accountId, setAccountId] = useState<string | undefined>()
|
||||||
const [isInPurgatory, setIsInPurgatory] = useState(false)
|
const [isInPurgatory, setIsInPurgatory] = useState(false)
|
||||||
const [purgatoryData, setPurgatoryData] = useState<AccountPurgatoryData>()
|
const [purgatoryData, setPurgatoryData] = useState<AccountPurgatoryData>()
|
||||||
const [config, setConfig] = useState<Config | ConfigHelperConfig>(
|
const [config, setConfig] =
|
||||||
initialConfig
|
useState<Config | ConfigHelperConfig>(initialConfig)
|
||||||
)
|
|
||||||
const [balance, setBalance] = useState<Balance | undefined>({
|
const [balance, setBalance] = useState<Balance | undefined>({
|
||||||
eth: undefined,
|
eth: undefined,
|
||||||
ocean: undefined
|
ocean: undefined
|
||||||
|
@ -28,9 +28,9 @@ export const computeFeedback: { [key in number]: string } = {
|
|||||||
2: '3/3 Access granted. Starting job...'
|
2: '3/3 Access granted. Starting job...'
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getCreatePricingPoolFeedback(
|
export function getCreatePricingPoolFeedback(dtSymbol: string): {
|
||||||
dtSymbol: string
|
[key: number]: string
|
||||||
): { [key: number]: string } {
|
} {
|
||||||
return {
|
return {
|
||||||
99: `Minting ${dtSymbol} ...`,
|
99: `Minting ${dtSymbol} ...`,
|
||||||
0: 'Creating pool ...',
|
0: 'Creating pool ...',
|
||||||
@ -41,9 +41,9 @@ export function getCreatePricingPoolFeedback(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getCreatePricingExchangeFeedback(
|
export function getCreatePricingExchangeFeedback(dtSymbol: string): {
|
||||||
dtSymbol: string
|
[key: number]: string
|
||||||
): { [key: number]: string } {
|
} {
|
||||||
return {
|
return {
|
||||||
99: `Minting ${dtSymbol} ...`,
|
99: `Minting ${dtSymbol} ...`,
|
||||||
0: 'Creating exchange ...',
|
0: 'Creating exchange ...',
|
||||||
|
Loading…
Reference in New Issue
Block a user