Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
b8c24a4
update ethereumjs dependencies (#177)
brad-decker Mar 15, 2023
bb1c352
Revert "update ethereumjs dependencies" (#180)
brad-decker Mar 20, 2023
9e1008e
Version 0.14.0 (#154)
FrederikBolding Mar 20, 2023
571611d
Reapply update ethereumjs dependencies (#177) (#181)
brad-decker Mar 20, 2023
f03f4cd
v0.15.0 (#182)
brad-decker Mar 20, 2023
875abfd
TypeScript migration (#174)
mikesposito Mar 28, 2023
40ce81d
Migrate to GH actions (#183)
mikesposito Apr 5, 2023
5414e06
Migrate to Jest (#185)
mikesposito Apr 17, 2023
2b92728
test: add jest-it-up (#186)
mikesposito Apr 19, 2023
c8f8a4e
Refactor keyring to split bridge logic (#156)
bergarces Jun 15, 2023
d8269ce
v1.0.0 (#191)
bergarces Jun 16, 2023
8336559
Revert "v1.0.0 (#191)" (#192)
Gudahtt Jun 16, 2023
ef3ce58
1.0.0 (#193)
github-actions[bot] Jun 16, 2023
caa9f9a
Bump semver from 6.3.0 to 6.3.1 (#194)
dependabot[bot] Jul 11, 2023
6e19ecc
Bump word-wrap from 1.2.3 to 1.2.4 (#195)
dependabot[bot] Jul 18, 2023
2c6ac51
Bump postcss from 8.4.21 to 8.4.31 (#199)
dependabot[bot] Oct 9, 2023
30ddc3a
Bump ethereumjs/** versions (#153)
adonesky1 Oct 10, 2023
431d194
Bump @babel/traverse from 7.21.4 to 7.23.2 (#200)
dependabot[bot] Oct 19, 2023
94caef9
deps: Replace eth-sig-util@^2 with @metamask/eth-sig-util@^6 (#157)
adonesky1 Oct 19, 2023
d587771
deps: [email protected]>^2.1.0 (#196)
legobeat Oct 25, 2023
dbd1659
Bump @metamask/utils from 5.0.0 to 5.0.2 (#187)
dependabot[bot] Oct 26, 2023
3de1eab
1.0.1 (#203)
github-actions[bot] Oct 26, 2023
42143c1
BREAKING: Minimum Node.js version 16 (#204)
legobeat Oct 26, 2023
f389b52
deps: @metamask/eth-sig-util@^6.0.1->^7.0.0 (#205)
legobeat Nov 1, 2023
a9da261
deps: @metamask/utils@^5.0.0->^8.2.0 (#206)
legobeat Nov 2, 2023
059e9b7
chore: move @metamask/utils from deps to devDeps (#209)
legobeat Nov 3, 2023
c25ee29
devDeps: @lavamoat/allow-scripts@^2.0.3->^2.5.1 (#197)
legobeat Nov 3, 2023
a2098ce
2.0.0 (#202)
github-actions[bot] Nov 6, 2023
2f0da8f
Fix contradictory typing of `IFrameMessageResponse` and refactor into…
MajorLift Nov 7, 2023
4f24e1d
fix: invalid rlp data for legacy transactions (#212)
mikesposito Dec 2, 2023
b5cbd56
Revert "Fix contradictory typing of `IFrameMessageResponse` and refac…
legobeat Dec 3, 2023
0155719
2.0.1 (#214)
github-actions[bot] Dec 4, 2023
23a3951
Fix contradictory typing of `IFrameMessageResponse` and refactor into…
legobeat Dec 4, 2023
184ec38
Bump follow-redirects from 1.15.3 to 1.15.4 (#218)
dependabot[bot] Jan 11, 2024
b60652b
Bump ip from 2.0.0 to 2.0.1 (#219)
dependabot[bot] Feb 21, 2024
7749409
feat: enhance code performance (#211)
stanleyyconsensys Feb 27, 2024
2cc856a
feat!: refactor to enable additional bridge (#210)
stanleyyconsensys Feb 27, 2024
bda0332
3.0.0 (#220)
github-actions[bot] Feb 28, 2024
3eadfc6
Enabling MetaMask security code scanner (#222)
metamaskbot Mar 6, 2024
d9e1221
Bump tar from 6.2.0 to 6.2.1 (#226)
dependabot[bot] Apr 15, 2024
127eb74
Bump follow-redirects from 1.15.4 to 1.15.6 (#224)
dependabot[bot] Apr 15, 2024
8979b63
feat: add mobile keyring bridge (#225)
stanleyyconsensys Jun 24, 2024
cbace1f
4.0.0 (#230)
github-actions[bot] Jun 25, 2024
3a82a2b
fix: disconnect error during transport reset (iOS devices only) (#231)
dawnseeker8 Jul 10, 2024
9496660
refactor: extend `LedgerMobileBridge` interface from `LedgerBridge` (…
dawnseeker8 Jul 11, 2024
bec276b
refactor: improve error messages (#232)
dawnseeker8 Jul 12, 2024
2a93ac2
4.1.0 (#234)
github-actions[bot] Jul 12, 2024
89e7a52
chore: update MetaMaskLedgerHwAppEth docs (#235)
gantunesr Jul 29, 2024
1ef5ab9
fix: `init` waits for the iframe to be loaded (#236)
mikesposito Jul 29, 2024
a6152d0
4.1.1 (#240)
github-actions[bot] Aug 15, 2024
05a38a4
chore!: deprecate + notice about monorepo + remove dependabot (#244)
ccharly Oct 7, 2024
2d5bf29
chore: add workflow_dispatch to security-code-scanner (#247)
metamaskbot Feb 28, 2025
f199df0
chore: bump ethersproject@^5.8.0 (#248)
ccharly Mar 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 0 additions & 62 deletions .circleci/config.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .circleci/scripts/deps-install.sh

This file was deleted.

13 changes: 13 additions & 0 deletions .depcheckrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"ignores": [
"@lavamoat/allow-scripts",
"@ledgerhq/types-cryptoassets",
"@ledgerhq/types-devices",
"@metamask/auto-changelog",
"@types/*",
"prettier-plugin-packagejson",
"rimraf",
"ts-node",
"typedoc"
]
}
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
43 changes: 23 additions & 20 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
module.exports = {
root: true,

extends: [
'@metamask/eslint-config',
'@metamask/eslint-config/config/mocha',
'@metamask/eslint-config/config/nodejs',
],

parser: 'babel-eslint',

parserOptions: {
ecmaVersion: 2017,
},

plugins: ['json', 'import'],

globals: {
document: 'readonly',
window: 'readonly',
},
extends: ['@metamask/eslint-config'],

overrides: [
{
files: ['.eslintrc.js'],
files: ['*.ts'],
extends: [
'@metamask/eslint-config-typescript',
'@metamask/eslint-config-browser',
],
},

{
files: ['*.js'],
parserOptions: {
sourceType: 'script',
},
extends: ['@metamask/eslint-config-nodejs'],
},

{
files: ['*.test.ts'],
rules: {
'import/no-nodejs-modules': 'off',
},
extends: [
'@metamask/eslint-config-nodejs',
'@metamask/eslint-config-jest',
],
},
],

Expand All @@ -36,4 +39,4 @@ module.exports = {
'docs/',
'.yarn/',
],
}
};
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
* text=auto

yarn.lock linguist-generated=false

# yarn v3
# See: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
/.yarn/releases/** binary
/.yarn/plugins/** binary
15 changes: 0 additions & 15 deletions .github/dependabot.yml

This file was deleted.

99 changes: 99 additions & 0 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: Build, Lint, and Test

on:
workflow_call:

jobs:
prepare:
name: Prepare
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install Yarn dependencies
run: yarn --immutable

build:
name: Build
runs-on: ubuntu-latest
needs:
- prepare
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn --immutable --immutable-cache
- run: yarn build
- name: Require clean working directory
shell: bash
run: |
if ! git diff --exit-code; then
echo "Working tree dirty at end of job"
exit 1
fi

lint:
name: Lint
runs-on: ubuntu-latest
needs:
- prepare
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn --immutable --immutable-cache
- run: yarn lint
- name: Validate RC changelog
if: ${{ startsWith(github.head_ref, 'release/') }}
run: yarn auto-changelog validate --rc
- name: Validate changelog
if: ${{ !startsWith(github.head_ref, 'release/') }}
run: yarn auto-changelog validate
- name: Require clean working directory
shell: bash
run: |
if ! git diff --exit-code; then
echo "Working tree dirty at end of job"
exit 1
fi

test:
name: Test
runs-on: ubuntu-latest
needs:
- prepare
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn --immutable --immutable-cache
- run: yarn test
- name: Require clean working directory
shell: bash
run: |
if ! git diff --exit-code; then
echo "Working tree dirty at end of job"
exit 1
fi
41 changes: 41 additions & 0 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Create Release Pull Request

on:
workflow_dispatch:
inputs:
base-branch:
description: 'The base branch for git operations and the pull request.'
default: 'main'
required: true
release-type:
description: 'A SemVer version diff, i.e. major, minor, patch, prerelease etc. Mutually exclusive with "release-version".'
required: false
release-version:
description: 'A specific version to bump to. Mutually exclusive with "release-type".'
required: false

jobs:
create-release-pr:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
with:
# This is to guarantee that the most recent tag is fetched.
# This can be configured to a more reasonable value by consumers.
fetch-depth: 0
# We check out the specified branch, which will be used as the base
# branch for all git operations and the release PR.
ref: ${{ github.event.inputs.base-branch }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- uses: MetaMask/action-create-release-pr@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release-type: ${{ github.event.inputs.release-type }}
release-version: ${{ github.event.inputs.release-version }}
70 changes: 70 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Main

on:
push:
branches: [main]
pull_request:

jobs:
check-workflows:
name: Check workflows
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download actionlint
id: download-actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/7fdc9630cc360ea1a469eed64ac6d78caeda1234/scripts/download-actionlint.bash) 1.6.22
shell: bash
- name: Check workflow files
run: ${{ steps.download-actionlint.outputs.executable }} -color
shell: bash

build-lint-test:
name: Build, lint, and test
uses: ./.github/workflows/build-lint-test.yml

all-jobs-completed:
name: All jobs completed
runs-on: ubuntu-latest
needs:
- check-workflows
- build-lint-test
outputs:
PASSED: ${{ steps.set-output.outputs.PASSED }}
steps:
- name: Set PASSED output
id: set-output
run: echo "PASSED=true" >> "$GITHUB_OUTPUT"

all-jobs-pass:
name: All jobs pass
if: ${{ always() }}
runs-on: ubuntu-latest
needs: all-jobs-completed
steps:
- name: Check that all jobs have passed
run: |
passed="${{ needs.all-jobs-completed.outputs.PASSED }}"
if [[ $passed != "true" ]]; then
exit 1
fi
is-release:
# release merge commits come from github-actions
if: startsWith(github.event.commits[0].author.name, 'github-actions')
needs: all-jobs-pass
outputs:
IS_RELEASE: ${{ steps.is-release.outputs.IS_RELEASE }}
runs-on: ubuntu-latest
steps:
- uses: MetaMask/action-is-release@v1
id: is-release

publish-release:
needs: is-release
if: needs.is-release.outputs.IS_RELEASE == 'true'
name: Publish release
permissions:
contents: write
uses: ./.github/workflows/publish-release.yml
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading