Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions packages/bitcoin-wallet-snap/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Process the entire requested account range as a single batch instead of chunks of 100, so the existing-accounts lookup and state I/O happen once per request ([#221](https://github.com/MetaMask/internal-snaps/pull/221))
- Split the chain `stopGap` configuration into `{ discovery: 5, scan: 20 }` so account discovery keeps the cheap probe while full account scans use the BIP44 gap limit ([#224](https://github.com/MetaMask/internal-snaps/pull/224))

### Removed

- **BREAKING** Remove the `onAssetsLookup`, `onAssetsConversion`, `onAssetHistoricalPrice`, and `onAssetsMarketData` asset handler entry points, along with the now-unused `AssetsHandler`, `AssetsUseCases`, `InMemoryCache`, `ICache`, and the `endowment:assets` permission ([#260](https://github.com/MetaMask/internal-snaps/pull/260))

### Fixed

- Coalesce concurrent account synchronization runs so stacked triggers (the 30s cronjob, `onActive`, and background events scheduled by `setSelectedAccounts`) share one run instead of duplicating network fetches, state writes, and keyring events ([#221](https://github.com/MetaMask/internal-snaps/pull/221))
Expand Down
8 changes: 4 additions & 4 deletions packages/bitcoin-wallet-snap/jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ const config = {
// An object that configures minimum threshold enforcement for coverage results
coverageThreshold: {
global: {
branches: 65.5,
functions: 61.63,
lines: 75.29,
statements: 74.57,
branches: 72.43,
functions: 57.43,
lines: 81.02,
statements: 80.75,
},
},

Expand Down
11 changes: 1 addition & 10 deletions packages/bitcoin-wallet-snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/internal-snaps.git"
},
"source": {
"shasum": "N40X9yuzuO3nWtRwrVRhAMQC1+XOcB3Ay3sxYrg2YFA=",
"shasum": "aQ6HjS1SyYkQjWSZl0+gv/5lfVJvR0rMbiSB8SijTLo=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down Expand Up @@ -99,15 +99,6 @@
}
}
]
},
"endowment:assets": {
"scopes": [
"bip122:000000000019d6689c085ae165831e93",
"bip122:000000000933ea01ad0ee984209779ba",
"bip122:00000000da84f2bafbbc53dee25a72ae",
"bip122:00000008819873e925422c1ff0f99f7c",
"bip122:regtest"
]
}
},
"platformVersion": "12.0.1",
Expand Down
1 change: 0 additions & 1 deletion packages/bitcoin-wallet-snap/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,5 @@ export const Config: SnapConfig = {
priceApi: {
url: fromEnv('PRICE_API_URL', 'https://price.api.cx.metamask.io'),
},
conversionsExpirationInterval: 60,
defaultAddressType: fromEnv('DEFAULT_ADDRESS_TYPE', 'p2wpkh') as AddressType,
};
1 change: 0 additions & 1 deletion packages/bitcoin-wallet-snap/src/entities/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export type SnapConfig = {
fallbackFeeRate: number;
ratesRefreshInterval: string;
priceApi: PriceApiConfig;
conversionsExpirationInterval: number;
defaultAddressType: AddressType;
};

Expand Down
237 changes: 0 additions & 237 deletions packages/bitcoin-wallet-snap/src/handlers/AssetsHandler.test.ts

This file was deleted.

Loading