diff --git a/.eslintrc b/.eslintrc index c61c0587..b5cad5f2 100644 --- a/.eslintrc +++ b/.eslintrc @@ -83,7 +83,7 @@ "indent": "off", "no-console": ["error", { "allow": ["warn", "error"] }], "react/display-name": "off", - "react/jsx-sort-props":"warn", + "react/jsx-sort-props": "warn", "react/prop-types": "off", "react/react-in-jsx-scope": "off" } diff --git a/cypress/e2e/extension.spec.ts b/cypress/e2e/extension.spec.ts index 07a29218..15443b66 100644 --- a/cypress/e2e/extension.spec.ts +++ b/cypress/e2e/extension.spec.ts @@ -26,10 +26,10 @@ describe('Signer extension flow on live networks', () => { cy.contains('No signer extension found.').should('be.visible'); cy.contains('New to Substrate?').should('be.visible'); cy.contains( - 'Install the a compatible wallet like Polkadot.js Extension to create and manage Substrate accounts.' + 'Install the a compatible wallet like Polkadot.js Extension to create and manage Substrate accounts.', ).should('be.visible'); cy.contains( - 'If the extension is installed and you are seeing this, make sure it allows Contracts UI to use your accounts for signing.' + 'If the extension is installed and you are seeing this, make sure it allows Contracts UI to use your accounts for signing.', ).should('be.visible'); }); }); @@ -45,10 +45,10 @@ describe('Signer extension flow on live networks', () => { cy.get('[data-cy="error-card"]').within(() => { cy.contains('No accounts found.').should('be.visible'); cy.contains( - '1. Follow this guide to create your first account in the Polkadot.js extension.' + '1. Follow this guide to create your first account in the Polkadot.js extension.', ).should('be.visible'); cy.contains( - '2. Drip some funds into your account via the faucets of our supported networks.' + '2. Drip some funds into your account via the faucets of our supported networks.', ).should('be.visible'); }); }); diff --git a/cypress/e2e/instantiateDryRun.spec.ts b/cypress/e2e/instantiateDryRun.spec.ts index c6aa51e1..3dd9be07 100644 --- a/cypress/e2e/instantiateDryRun.spec.ts +++ b/cypress/e2e/instantiateDryRun.spec.ts @@ -21,7 +21,7 @@ describe('Instantiate dry run', () => { cy.contains('ContractTrapped').should('be.visible'); cy.contains('Contract trapped during execution.').should('be.visible'); cy.contains( - "panicked at 'assertion failed: 0 < requirement && requirement <= owners && owners <= MAX_OWNERS" + "panicked at 'assertion failed: 0 < requirement && requirement <= owners && owners <= MAX_OWNERS", ).should('be.visible'); }); }); diff --git a/cypress/support/component-index.html b/cypress/support/component-index.html index e39ba429..faf3b5f4 100644 --- a/cypress/support/component-index.html +++ b/cypress/support/component-index.html @@ -1,4 +1,4 @@ - +
diff --git a/index.html b/index.html index 1a550708..00594c18 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + diff --git a/package.json b/package.json index 98fc5cf5..3336b841 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "scripts": { "start": "vite", "build": "tsc && vite build", - "lint": "yarn eslint --fix .", + "lint": "echo 'linting...'; yarn eslint --fix .; echo 'linting complete!'", "format": "yarn prettier --write .", "clean": "rm -rf dist", "test": "yarn cypress run", @@ -52,48 +52,48 @@ "react-select": "^5.7.3", "react-tooltip": "^5.14.0", "remark-gfm": "^3.0.1", - "tailwind-merge": "^1.13.1", + "tailwind-merge": "^1.14.0", "yup": "^1.2.0" }, "devDependencies": { - "@cypress/code-coverage": "^3.10.7", + "@cypress/code-coverage": "^3.11.0", "@cypress/snapshot": "^2.1.7", "@esbuild-plugins/node-globals-polyfill": "^0.2.3", "@istanbuljs/nyc-config-typescript": "^1.0.2", "@nabla/vite-plugin-eslint": "^1.5.0", - "@tailwindcss/forms": "^0.5.3", + "@tailwindcss/forms": "^0.5.4", "@types/bcryptjs": "^2.4.2", "@types/big.js": "^6.1.6", - "@types/node": "^20.3.1", - "@types/react-dom": "^18.2.4", - "@typescript-eslint/eslint-plugin": "^5.59.11", - "@typescript-eslint/parser": "^5.59.11", + "@types/node": "^20.4.5", + "@types/react-dom": "^18.2.7", + "@typescript-eslint/eslint-plugin": "^6.1.0", + "@typescript-eslint/parser": "^6.1.0", "@vitejs/plugin-react": "^4.0.3", "autoprefixer": "^10.4.14", "cross-env": "^7.0.3", - "cypress": "^12.14.0", + "cypress": "^12.17.2", "cypress-file-upload": "^5.0.8", - "eslint": "^8.42.0", + "eslint": "^8.45.0", "eslint-config-prettier": "^8.8.0", "eslint-import-resolver-typescript": "^3.5.5", "eslint-plugin-header": "^3.1.1", "eslint-plugin-import": "^2.27.5", - "eslint-plugin-react": "^7.32.2", + "eslint-plugin-react": "^7.33.0", "eslint-plugin-react-hooks": "^4.6.0", "husky": "^8.0.3", "istanbul-lib-coverage": "^3.2.0", "lint-staged": ">=13.2.2", "nyc": "^15.1.0", - "postcss": "^8.4.24", + "postcss": "^8.4.27", "postcss-import": "^15.1.0", - "prettier": "^2.8.8", - "prettier-plugin-tailwindcss": "^0.2.8", + "prettier": "^3.0.0", + "prettier-plugin-tailwindcss": "^0.4.1", "source-map-support": "^0.5.21", - "tailwindcss": "^3.3.2", + "tailwindcss": "^3.3.3", "ts-node": "^10.9.1", - "typescript": "^5.1.3", + "typescript": "^5.1.6", "vite": "^4.4.6", - "vite-plugin-istanbul": "^4.1.0", + "vite-plugin-istanbul": "^5.0.0", "vite-tsconfig-paths": "^4.2.0" }, "browserslist": [ diff --git a/snapshots.js b/snapshots.js index 26d40c59..4ebd7cca 100644 --- a/snapshots.js +++ b/snapshots.js @@ -1,5 +1,5 @@ module.exports = { - __version: '12.8.1', + __version: '12.17.2', 'Storage Types Contract': { UnsignedIntegers: { 1: "{\n i128ValueMax: '170,141,183,460,469,231,731,687,303,715,884,105,727',\n i128ValueMin: '-170,141,183,460,469,231,731,687,303,715,884,105,728',\n i16ValueMax: '-32,769',\n i16ValueMin: '-32,768',\n i32ValueMax: '2,147,483,647',\n i32ValueMin: '-2,147,483,648',\n i64ValueMax: '9,223,372,036,854,775,807',\n i64ValueMin: '-9,223,372,036,854,775,808',\n i8ValueMax: '-129',\n i8ValueMin: '-128',\n }
",
diff --git a/src/helpers/callOptions.ts b/src/helpers/callOptions.ts
index 59b60dd9..aa4a9ede 100644
--- a/src/helpers/callOptions.ts
+++ b/src/helpers/callOptions.ts
@@ -6,7 +6,7 @@ import { randomAsU8a } from './util';
import { UIStorageDeposit, ContractCallOutcome, BN, WeightV2, AbiParam, Registry } from 'types';
export function decodeStorageDeposit(
- storageDeposit: ContractCallOutcome['storageDeposit']
+ storageDeposit: ContractCallOutcome['storageDeposit'],
): UIStorageDeposit {
if (storageDeposit.isCharge) {
return { value: storageDeposit.asCharge, type: 'charge' };
@@ -30,7 +30,7 @@ export function getStorageDepositLimit(
switchOn: boolean,
userInput: BN,
registry: Registry,
- dryRunValue?: UIStorageDeposit
+ dryRunValue?: UIStorageDeposit,
) {
return switchOn
? registry.createType('Balance', userInput)
@@ -43,7 +43,7 @@ export function getGasLimit(
switchOn: boolean,
refTimeLimit: BN,
proofSizeLimit: BN,
- registry: Registry
+ registry: Registry,
): WeightV2 | null {
return switchOn
? registry.createType('WeightV2', {
@@ -56,7 +56,7 @@ export function getGasLimit(
export function transformUserInput(
registry: Registry,
messageArgs: AbiParam[],
- values?: Record{`Not found at ${truncate( - address + address, )}`}
)} diff --git a/src/ui/components/contract/DryRunResult.tsx b/src/ui/components/contract/DryRunResult.tsx index db96e95f..1b28f664 100644 --- a/src/ui/components/contract/DryRunResult.tsx +++ b/src/ui/components/contract/DryRunResult.tsx @@ -50,7 +50,7 @@ export function DryRunResult({