Skip to content

Commit

Permalink
feta: Snap renaming to 'Linea Voyager' (#45)
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Montoya <[email protected]>
  • Loading branch information
alainncls and Montoya authored Apr 15, 2024
1 parent 2c4c766 commit daef4a5
Show file tree
Hide file tree
Showing 15 changed files with 71 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
key: snap-${{ runner.os }}-${{ github.sha }}
- run: yarn install --immutable
- name: Run e2e tests
run: yarn workspace @consensys/lxp-snap run test
run: yarn workspace @consensys/linea-voyager run test
- name: Require clean working directory
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-snap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
VERSION=$(node -p "require('./packages/snap/package.json').version")
npm --prefix ./packages/snap version --new-version "${VERSION}" --no-git-tag-version --allow-same-version
yarn workspace @consensys/lxp-snap build
yarn workspace @consensys/linea-voyager build
npm publish ./packages/snap --tag latest --access public > /dev/null 2>&1
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions/checkout@v3
- name: Prepare for deployment
run: |
echo "lxp-snap.linea.build" > packages/site/src/CNAME
echo "voyager-snap.linea.build" > packages/site/src/CNAME
echo "User-Agent: *" > packages/site/src/robots.txt
echo "Disallow: /" >> packages/site/src/robots.txt
- name: Setup Pages
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Linea XP Snap
# Linea Voyager Snap

View your Linea XP balance, Proof of Humanity status, and current LXP Activations right inside of MetaMask!

Powered by https://lineascan.build APIs and [MetaMask Snaps](https://metamask.io/snaps).

## Getting Started

Clone the template-snap repository [using this template](https://github.com/MetaMask/template-snap-monorepo/generate)
and set up the development environment:
Clone this repository to your local machine and set up the development environment:

```shell
yarn install && yarn start
Expand All @@ -16,8 +17,9 @@ Open your browser and navigate to `http://localhost:3000` to access the producti
## Cloning

This repository contains GitHub Actions that you may find useful, see
`.github/workflows` and [Releasing & Publishing](https://github.com/MetaMask/template-snap-monorepo/edit/main/README.md#releasing--publishing)
below for more information.
`.github/workflows` and
[Releasing & Publishing](https://github.com/MetaMask/template-snap-monorepo/edit/main/README.md#releasing--publishing)
for more information.

If you clone or create this repository outside the MetaMask GitHub organization,
you probably want to run `./scripts/cleanup.sh` to remove some files that will
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"version": "0.1.0",
"private": true,
"description": "",
"homepage": "https://github.com/MetaMask/template-snap-monorepo#readme",
"homepage": "https://voyager-snap.linea.build",
"bugs": {
"url": "https://github.com/MetaMask/template-snap-monorepo/issues"
"url": "https://github.com/Consensys/linea-voyager-snap/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/MetaMask/template-snap-monorepo.git"
"url": "git+https://github.com/Consensys/linea-voyager-snap.git"
},
"license": "(MIT-0 OR Apache-2.0)",
"author": "",
Expand All @@ -23,7 +23,7 @@
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
"lint:misc": "prettier '**/*.html' '**/*.json' '**/*.md' '!**/CHANGELOG.md' '**/*.yml' --ignore-path .gitignore",
"start": "yarn workspaces foreach --parallel --interlaced --verbose run start",
"test": "yarn workspace @consensys/lxp-snap run test"
"test": "yarn workspace @consensys/linea-voyager run test"
},
"devDependencies": {
"@lavamoat/allow-scripts": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/dev-site/.env.production
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SNAP_ORIGIN=npm:@consensys/lxp-snap
SNAP_ORIGIN=npm:@consensys/linea-voyager
2 changes: 1 addition & 1 deletion packages/snap/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Linea XP Snap
# Linea Voyager Snap

View your Linea XP balance, Proof of Humanity status, and current LXP Activations right inside of MetaMask!
38 changes: 37 additions & 1 deletion packages/snap/img/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions packages/snap/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"prompt": "Please enter the wallet address linked to your LXP"
},
"nextSteps": {
"heading": "Thank you for installing the LXP Snap",
"body": "Next, set your address with the [companion site](https://lxp-snap.linea.build/) to track your Linea XP balance. At any time you can open the Snaps menu and click on LXP to view your balance, Proof of Humanity status, and current activations."
"heading": "Thank you for installing the Linea Voyager Snap",
"body": "Next, set your address with the [companion site](https://voyager-snap.linea.build/) to track your Linea XP balance. At any time you can open the Snaps menu and click on LXP to view your balance, Proof of Humanity status, and current activations."
},
"noAddress": {
"toSetText": "To view your LXP balance and POH status,",
Expand Down
4 changes: 2 additions & 2 deletions packages/snap/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"prompt": "Ingresa tu cuenta para ver tu balance"
},
"nextSteps": {
"heading": "Gracias por instalar LXP Snap",
"body": "Para ver tu balance de LXP y estado de POH, [ingresa tu cuenta por el sitio web](https://lxp-snap.linea.build/). A cualquier tiempo puedes abrir el menu y seleccionar el Snap para ver tu balance, estado de POH, y activaciones de LXP activas."
"heading": "Gracias por instalar Linea Voyager Snap",
"body": "Para ver tu balance de LXP y estado de POH, [ingresa tu cuenta por el sitio web](https://voyager-snap.linea.build/). A cualquier tiempo puedes abrir el menu y seleccionar el Snap para ver tu balance, estado de POH, y activaciones de LXP activas."
},
"noAddress": {
"toSetText": "Para ver tu balance de LXP y estado de POH,",
Expand Down
6 changes: 3 additions & 3 deletions packages/snap/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
"prompt": "Veuillez saisir l'adresse de votre wallet lié à vos LXP"
},
"nextSteps": {
"heading": "Merci d'avoir installé le Snap LXP",
"body": "Ensuite, définissez votre adresse avec le [site web](https://lxp-snap.linea.build/) pour suivre votre solde Linea XP. À tout moment, vous pouvez ouvrir le menu Snaps et cliquer sur LXP pour voir votre solde, votre statut de POH, et les activations actuelles."
"heading": "Merci d'avoir installé le Snap Linea Voyager",
"body": "Ensuite, définissez votre adresse avec le [site web](https://voyager-snap.linea.build/) pour suivre votre solde Linea XP. À tout moment, vous pouvez ouvrir le menu Snaps et cliquer sur LXP pour voir votre solde, votre statut de POH, et les activations actuelles."
},
"noAddress": {
"toSetText": "Pour votre votre balance de LXP et votre statut de POH,",
"toSetLink": "commencez par définir votre adresse"
},
"help": "fr-Your LXP balance shows only completed onchain drops. It does not include activations pending drops.",
"help": "Votre balance de LXP ne montre que les drops onchain terminés. Elle n'inclut pas les activations en attente de drops.",
"viewBalance": "Voir votre balance sur Lineascan",
"completePOH": "Réalisez votre POH",
"exploreAll": "Explorez les Activations Linea",
Expand Down
6 changes: 3 additions & 3 deletions packages/snap/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@consensys/lxp-snap",
"version": "0.5.0",
"name": "@consensys/linea-voyager",
"version": "0.6.0",
"description": "View your minted Linea XP balance, POH status, and current activations.",
"repository": {
"type": "git",
"url": "https://github.com/Consensys/lxp-snap"
"url": "https://github.com/Consensys/linea-voyager-snap"
},
"license": "(MIT-0 OR Apache-2.0)",
"main": "./dist/bundle.js",
Expand Down
10 changes: 5 additions & 5 deletions packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"version": "0.5.0",
"version": "0.6.0",
"description": "View your minted Linea XP balance, POH status, and current activations.",
"proposedName": "LXP",
"proposedName": "Linea Voyager",
"repository": {
"type": "git",
"url": "https://github.com/Consensys/lxp-snap"
"url": "https://github.com/Consensys/linea-voyager-snap"
},
"source": {
"shasum": "I12yn8a6cDch/RN+jgLKQX7xI+Uufm2LB5JL3Fy+y2k=",
"shasum": "iwHflWvsc+/uiVx5cVg7edstgwbAM5Upf9BbjjFS2tU=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
"iconPath": "img/icon.svg",
"packageName": "@consensys/lxp-snap",
"packageName": "@consensys/linea-voyager",
"registry": "https://registry.npmjs.org/"
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/src/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export async function renderMainUi(myAccount: string) {
const addressToSetLink = captions?.noAddress?.toSetLink as string;
myData.push(
text(
`${addressToSetText} [${addressToSetLink}](https://lxp-snap.linea.build).`,
`${addressToSetText} [${addressToSetLink}](https://voyager-snap.linea.build).`,
),
);
}
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1635,9 +1635,9 @@ __metadata:
languageName: node
linkType: hard

"@consensys/lxp-snap@workspace:packages/snap":
"@consensys/linea-voyager@workspace:packages/snap":
version: 0.0.0-use.local
resolution: "@consensys/lxp-snap@workspace:packages/snap"
resolution: "@consensys/linea-voyager@workspace:packages/snap"
dependencies:
"@jest/globals": ^29.5.0
"@metamask/auto-changelog": 3.4.4
Expand Down

0 comments on commit daef4a5

Please sign in to comment.