diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 33ffedf4eea..00000000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @uniswap/web-reviewers diff --git a/.github/actions/report/action.yml b/.github/actions/report/action.yml deleted file mode 100644 index 6c7f7600fe5..00000000000 --- a/.github/actions/report/action.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Report -description: Report test failures via Slack -inputs: - name: - description: The name of the failing test - required: true - SLACK_WEBHOOK_URL: - description: The webhook URL to send the report to - required: true - -runs: - using: composite - steps: - - uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844 - with: - payload: | - { - "text": "${{ inputs.name }} failing on `${{ github.ref_name }}`", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "*${{ inputs.name }} failing on `${{ github.ref_name }}`:* " - } - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "_This is blocking pull requests and branch promotions._\n_Please prioritize fixing the build._" - } - } - ] - } - env: - SLACK_WEBHOOK_URL: ${{ inputs.SLACK_WEBHOOK_URL }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK - # The !oncall bot requires its own message: - - uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844 - with: - payload: | - { - "text": "!oncall web" - } - env: - SLACK_WEBHOOK_URL: ${{ inputs.SLACK_WEBHOOK_URL }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK diff --git a/CODEOWNERS b/CODEOWNERS deleted file mode 100644 index f70773659eb..00000000000 --- a/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @uniswap/web-admins diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9dd59ce73ee..d5edacf1c64 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -20,17 +20,22 @@ The interface should automatically open. If it does not, navigate to [http://loc ## Creating a production build +Build horswap docker ``` -yarn build +docker build -f Dockerfile . -t horswap ``` -To serve the production build: +Deploy to IPFS (requires running local IPFS node with the API exposed on default port, IPFS Desktop is sufficient) +``` +docker container run --rm -it horswap +``` +The last line of the output should say: ``` -yarn serve +added bafyb... export ``` -Then, navigate to [http://localhost:3000] to see it. +Given that you are hosting IPFS gateway at localhost:8081, you can then navigate to [bafyb....ipfs.localhost:8081] to interact with Horswap. ## Running unit tests diff --git a/cypress/e2e/wallet-dropdown.test.ts b/cypress/e2e/wallet-dropdown.test.ts index 37f12cf39a1..cffae79c532 100644 --- a/cypress/e2e/wallet-dropdown.test.ts +++ b/cypress/e2e/wallet-dropdown.test.ts @@ -23,15 +23,15 @@ describe('Wallet Dropdown', () => { function itChangesLocale() { it('should change locale', () => { - cy.contains('Uniswap available in: English').should('not.exist') + cy.contains('Horswap available in: English').should('not.exist') cy.get(getTestSelector('wallet-language-item')).contains('Afrikaans').click({ force: true }) cy.location('search').should('match', /\?lng=af-ZA$/) - cy.contains('Uniswap available in: English') + cy.contains('Horswap available in: English') cy.get(getTestSelector('wallet-language-item')).contains('English').click({ force: true }) cy.location('search').should('match', /\?lng=en-US$/) - cy.contains('Uniswap available in: English').should('not.exist') + cy.contains('Horswap available in: English').should('not.exist') }) } diff --git a/cypress/staging/t9n.test.ts b/cypress/staging/t9n.test.ts index d59fd7ec7dc..356a37f3a9b 100644 --- a/cypress/staging/t9n.test.ts +++ b/cypress/staging/t9n.test.ts @@ -4,7 +4,7 @@ describe('translations', () => { it('loads locale from the query param', () => { cy.visit('/?lng=fr-FR') cy.contains('Échanger') - cy.contains('Uniswap disponible en : English') + cy.contains('Horswap disponible en : English') }) it('loads locale from menu', () => { @@ -14,6 +14,6 @@ describe('translations', () => { cy.get(getTestSelector('wallet-language-item')).contains('français').click({ force: true }) cy.location('search').should('match', /\?lng=fr-FR$/) cy.contains('Échanger') - cy.contains('Uniswap disponible en : English') + cy.contains('Horswap disponible en : English') }) }) diff --git a/package.json b/package.json index bf5e757597a..7af4e1977d2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@uniswap/interface", - "version": "1.1.0", + "name": "@darkflorist/horswap", + "version": "1.0.0", "description": "Horswap Interface", "license": "GPL-3.0-or-later", "scripts": { diff --git a/public/.well-known/assetlinks.json b/public/.well-known/assetlinks.json deleted file mode 100644 index dfcfe7ccd5e..00000000000 --- a/public/.well-known/assetlinks.json +++ /dev/null @@ -1,29 +0,0 @@ -[ - { - "relation": ["delegate_permission/common.handle_all_urls"], - "target": { - "namespace": "android_app", - "package_name": "com.uniswap.mobile", - "sha256_cert_fingerprints": - ["49:D9:3D:5D:FB:AA:64:A4:64:80:85:0F:39:A8:C1:D9:25:D3:D4:BC:8E:6B:1F:45:0C:EA:AF:B1:0C:27:DF:B8", "F9:E9:E3:F0:04:28:66:62:81:44:50:7E:D6:A9:5F:B9:65:39:02:70:1D:13:74:15:D3:E1:A3:1B:D4:38:3A:1F"] - } - }, - { - "relation": ["delegate_permission/common.handle_all_urls"], - "target": { - "namespace": "android_app", - "package_name": "com.uniswap.mobile.beta", - "sha256_cert_fingerprints": - ["75:41:9C:2D:01:4A:88:4E:8D:C6:EF:E5:51:54:28:6B:99:05:31:43:AD:84:B4:EB:39:28:B8:C3:C4:CE:48:E3", "54:4B:62:33:17:9B:5F:A8:E6:5D:D3:A6:E5:9D:80:5F:A5:02:7F:E2:14:B8:C1:7A:AC:4B:8D:E0:65:49:87:41"] - } - }, - { - "relation": ["delegate_permission/common.handle_all_urls"], - "target": { - "namespace": "android_app", - "package_name": "com.uniswap.mobile.dev", - "sha256_cert_fingerprints": - ["45:F8:15:02:C5:4F:AD:82:E7:51:F0:9C:D1:CA:77:C8:C9:BF:06:A6:D9:5A:55:4F:9E:B8:5F:81:33:2B:D0:DB", "02:E6:1C:76:8C:75:C3:78:C8:8C:FE:7B:2E:8F:4B:E1:FA:47:F2:F6:1A:DB:57:69:4A:41:99:C6:71:2C:AB:E3", "FA:C6:17:45:DC:09:03:78:6F:B9:ED:E6:2A:96:2B:39:9F:73:48:F0:BB:6F:89:9B:83:32:66:75:91:03:3B:9C"] - } - } -] \ No newline at end of file diff --git a/public/451.html b/public/451.html deleted file mode 100644 index 19918c3ecf0..00000000000 --- a/public/451.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - Unavailable For Legal Reasons - - -

Unavailable For Legal Reasons

- - diff --git a/public/index.html b/public/index.html index 0b07579550a..02e35b87478 100644 --- a/public/index.html +++ b/public/index.html @@ -33,12 +33,6 @@ <% } %> /> - - -