diff --git a/docs/broadcast-payload.md b/docs/broadcast-payload.md index 4de8039..ae3070c 100644 --- a/docs/broadcast-payload.md +++ b/docs/broadcast-payload.md @@ -6,7 +6,7 @@ This document describes the structure of the payload that is sent to the broadca The broadcast server receives a payload with the following structure: -```typescript +````typescript interface BroadcastRequest { chainId: string; compact: CompactMessage; @@ -117,17 +117,18 @@ Example endpoint structure: ```typescript app.post('/broadcast', async (req, res) => { const { compact, sponsorSignature, allocatorSignature, context } = req.body; - + // Validate signatures and process swap // ... res.json({ success: true }); }); -``` +```` ## EIP-712 Type Definition The Compact payload follows this exact EIP-712 type structure: + ```solidity Compact { address arbiter; @@ -150,4 +151,4 @@ Mandate { uint256 scalingFactor; bytes32 salt; } -``` \ No newline at end of file +``` diff --git a/eslint.config.js b/eslint.config.js index 092408a..c973d7f 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,8 +1,8 @@ -import js from '@eslint/js' -import globals from 'globals' -import reactHooks from 'eslint-plugin-react-hooks' -import reactRefresh from 'eslint-plugin-react-refresh' -import tseslint from 'typescript-eslint' +import js from '@eslint/js'; +import globals from 'globals'; +import reactHooks from 'eslint-plugin-react-hooks'; +import reactRefresh from 'eslint-plugin-react-refresh'; +import tseslint from 'typescript-eslint'; export default tseslint.config( { ignores: ['dist'] }, @@ -19,10 +19,7 @@ export default tseslint.config( }, rules: { ...reactHooks.configs.recommended.rules, - 'react-refresh/only-export-components': [ - 'warn', - { allowConstantExport: true }, - ], + 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }], }, - }, -) + } +); diff --git a/index.html b/index.html index de81d00..a1b271c 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,10 @@
- +{formErrors.name}
- )} + {formErrors.name &&{formErrors.name}
}