Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
528 commits
Select commit Hold shift + click to select a range
1acfd62
chore: lint
khanti42 May 11, 2026
bd10c4a
Merge branch 'main' into feat/batch-accounts
khanti42 May 12, 2026
58cef90
Merge pull request #55 from MetaMask/feat/batch-accounts
stanleyyconsensys May 12, 2026
810c83c
Update packages/snap/src/handlers/clientRequest/computeFee.ts
Julink-eth May 12, 2026
dcc21cc
Merge branch 'main' into feat/signAndSendTx
Julink-eth May 12, 2026
b5edd05
chore: handle comments
khanti42 May 12, 2026
2bf4311
Merge branch 'main' into feat/chg-trust-refine
khanti42 May 12, 2026
0d88a27
fix: sync tomstrone asset
stanleyyconsensys May 12, 2026
7076aaf
chore: address last comments
Julink-eth May 12, 2026
09fee1c
Merge pull request #51 from MetaMask/feat/chg-trust-refine
khanti42 May 12, 2026
ecfdab4
chore: merge main
Julink-eth May 12, 2026
bc3c3e5
Merge pull request #61 from MetaMask/feat/signAndSendTx
Julink-eth May 12, 2026
7104b40
chore: update jsdoc
stanleyyconsensys May 12, 2026
96e9a36
Merge pull request #65 from MetaMask/fix/sync_tombstone_asset
stanleyyconsensys May 13, 2026
84211d5
refactor: add account resolver
stanleyyconsensys May 13, 2026
ccbcf69
chore: add test
stanleyyconsensys May 13, 2026
a97ee7b
fix: address comments
stanleyyconsensys May 13, 2026
cf3a860
Merge pull request #66 from MetaMask/refactor/account-resolver
stanleyyconsensys May 14, 2026
d82d3a9
fix: self transfer validation
stanleyyconsensys May 15, 2026
716cbf2
chore: add in memory cache to NetworkService
stanleyyconsensys May 15, 2026
e3595aa
chore: update context.ts
stanleyyconsensys May 15, 2026
562ff24
chore: update txn utils
stanleyyconsensys May 15, 2026
a820367
Update TransactionSimulator.ts
stanleyyconsensys May 15, 2026
f602bda
chore:
stanleyyconsensys May 15, 2026
68502f3
fix: remove cache from txn service
stanleyyconsensys May 15, 2026
3f99d4e
fix: test
stanleyyconsensys May 15, 2026
0b5a28d
fix: comment
stanleyyconsensys May 15, 2026
14ddd18
fix: test
stanleyyconsensys May 15, 2026
b4a12b7
fix: network service
stanleyyconsensys May 15, 2026
f5dacd6
fix: missing env
stanleyyconsensys May 15, 2026
4c06dce
fix: comment
stanleyyconsensys May 15, 2026
8cb67d5
fix: test
stanleyyconsensys May 15, 2026
3f350b2
fix: keyring api asset balance
stanleyyconsensys May 18, 2026
ab946ef
feat: add security scanning to snap confirmations
wantedsystem May 18, 2026
844e4ec
fix: fix copilot comments
wantedsystem May 19, 2026
0eaee0b
fix: accept contract address
stanleyyconsensys May 20, 2026
e36fbc1
chore: add env example
stanleyyconsensys May 20, 2026
987d887
fix: keying test
stanleyyconsensys May 20, 2026
53aeb14
Merge pull request #67 from MetaMask/fix/simulation-self-transfer
stanleyyconsensys May 20, 2026
ba5f845
chore: update code comment
stanleyyconsensys May 20, 2026
9eed6d6
Merge branch 'main' into chore/network-service-with-cache
stanleyyconsensys May 20, 2026
a914abf
chore: code comment
stanleyyconsensys May 20, 2026
36c3f7b
Merge pull request #68 from MetaMask/chore/network-service-with-cache
stanleyyconsensys May 20, 2026
26ebd57
fix: code comment
stanleyyconsensys May 20, 2026
9c43641
Merge pull request #69 from MetaMask/fix/asset-sync-visibiltity
stanleyyconsensys May 20, 2026
a42ea1a
Merge branch 'main' into feat/stellar-snap-security-scan
wantedsystem May 20, 2026
bccca7f
ci: migrate publish-preview workflow to MetaMask/github-tools (#73)
mikesposito May 21, 2026
d3a1b63
fix: add fee multiplier (#75)
stanleyyconsensys May 21, 2026
1114300
feat: add `onAmountInput ` and `onAddressInput` RPC (#63)
stanleyyconsensys May 21, 2026
1795b7f
refactor: add confirmation refresher (#74)
stanleyyconsensys May 21, 2026
1c0e52b
feat: allow payment only op for bridging
Julink-eth May 25, 2026
ce2bf5e
chore: addess copilot's comments
Julink-eth May 25, 2026
f5b537c
Merge pull request #77 from MetaMask/fix/add-allowed-op-for-bridging
Julink-eth May 25, 2026
6ce2939
Merge branch 'main' into feat/stellar-snap-security-scan
wantedsystem May 25, 2026
8ff80a9
fix: fix copilot ai comment
wantedsystem May 25, 2026
23ac9b7
fix: use the selected account for the sign and send tx flow in the site
Julink-eth May 27, 2026
73d46ae
chore: add expire time validation (#78)
stanleyyconsensys May 27, 2026
dc63d48
Merge pull request #79 from MetaMask/fix/use-selected-account-for-sig…
Julink-eth May 27, 2026
9ebda8f
feat: add Stellar account asset info RPC
khanti42 May 27, 2026
d0b383c
Merge branch 'main' into feat/stellar-account-asset-info
khanti42 May 27, 2026
e169e16
chore: fix lint and tests
khanti42 May 27, 2026
d033665
fix: fix comments
wantedsystem May 28, 2026
56dc705
chore: use rpc instead of keyring for extra asset info
khanti42 May 28, 2026
25f0b4a
feat: add confirmSend RPC (#76)
stanleyyconsensys May 28, 2026
fc1cd04
fix: fix comments
wantedsystem May 29, 2026
6dcf6b3
Merge pull request #70 from MetaMask/feat/stellar-snap-security-scan
wantedsystem May 29, 2026
4e2b73a
feat: add qr code on account activation dialog (#82)
stanleyyconsensys May 29, 2026
3b57b27
feat: add transaction analysis (#83)
stanleyyconsensys May 29, 2026
8c72e77
fix: enforces SEP-29 “memo required” (#84)
stanleyyconsensys Jun 1, 2026
dc5b92c
Merge branch 'main' into feat/stellar-account-asset-info
khanti42 Jun 1, 2026
186e7df
chore: address comment
khanti42 Jun 1, 2026
dd40a9d
chore: remove AccountAssetInfoService
khanti42 Jun 1, 2026
db22a7e
chore: revert track transaction change
khanti42 Jun 1, 2026
2307491
feat: enable security scan for send confirmations
wantedsystem Jun 1, 2026
36bbc6a
feat: add transaction validation refresh to confirmation flows
wantedsystem Jun 1, 2026
81d00af
fix: fix lint
wantedsystem Jun 1, 2026
d95ea7b
fix: fix copilot comments
wantedsystem Jun 1, 2026
19a20ac
fix: fix comments
wantedsystem Jun 2, 2026
3ead9ca
feat: replace soroban polling by horizon tx tracking
khanti42 Jun 2, 2026
f7a875b
chore: handle comments
khanti42 Jun 2, 2026
d06dd87
chore: handle comment 2
khanti42 Jun 3, 2026
6636e1b
chore: simplify logic in buildAccountAssetInfoResponse
khanti42 Jun 3, 2026
83774e1
Merge branch 'feat/stellar-account-asset-info' into feat/track-tx-thr…
khanti42 Jun 3, 2026
8d7eea7
fix: fix comments
wantedsystem Jun 3, 2026
6d37061
chore: handle comment
khanti42 Jun 3, 2026
d51f780
Merge pull request #85 from MetaMask/feat/enable-security-scan-send-flow
wantedsystem Jun 3, 2026
c94780c
chore: todo is a todo
khanti42 Jun 3, 2026
fa96e01
Merge pull request #81 from MetaMask/feat/stellar-account-asset-info
khanti42 Jun 3, 2026
447dfc4
chore: use native raw balance (#80)
stanleyyconsensys Jun 4, 2026
e811dd1
feat: transaction scanning patch 1 - refactor transaction object and…
stanleyyconsensys Jun 4, 2026
4e5c67e
feat: align computeFee and signAndSendTransaction param struct with S…
Julink-eth Jun 4, 2026
b2b7ddf
Merge branch 'main' into feat/track-tx-thrrough-horizon
stanleyyconsensys Jun 5, 2026
b3343be
chore: refactor
stanleyyconsensys Jun 5, 2026
f6e84ae
chore: rollback unuse change
stanleyyconsensys Jun 5, 2026
628b627
fix: add config
stanleyyconsensys Jun 5, 2026
469cd8b
fix: comment
stanleyyconsensys Jun 5, 2026
9cffede
Merge pull request #89 from MetaMask/feat/adjust-computeFee-struct
Julink-eth Jun 5, 2026
9892eca
fix: skip memo require validation for self payment / swap (#91)
stanleyyconsensys Jun 5, 2026
8a28391
fix: return required balance for fee exception
Julink-eth Jun 5, 2026
b9faed8
Potential fix for pull request finding
Julink-eth Jun 5, 2026
6fb4207
chore: restore wrongly removed accepted shape
Julink-eth Jun 5, 2026
714462b
chore: update the unit tests
Julink-eth Jun 5, 2026
99af1a4
chore: fix comments
Julink-eth Jun 5, 2026
fe52874
Merge pull request #92 from MetaMask/fix/computeFee-exception-handling
Julink-eth Jun 5, 2026
f228003
Merge branch 'main' into feat/add-swap-struct-checks
Julink-eth Jun 5, 2026
aea4f2f
Merge pull request #93 from MetaMask/feat/add-swap-struct-checks
Julink-eth Jun 5, 2026
5a7f926
Merge pull request #88 from MetaMask/feat/track-tx-thrrough-horizon
khanti42 Jun 5, 2026
1643c31
chore: add unified Stellar pubnet token list
wantedsystem Jun 5, 2026
52dc305
chore: add unified Stellar pubnet token list
wantedsystem Jun 5, 2026
ce5fa31
feat: transaction scan batch 2 (#96)
stanleyyconsensys Jun 10, 2026
ee9ccf4
Feat/transcation scan 3 - add transaction mapper (#97)
stanleyyconsensys Jun 10, 2026
63486e4
feat: refresh transaction on confirm
wantedsystem Jun 10, 2026
443cda9
fix: fix comments
wantedsystem Jun 11, 2026
b56d30e
refactor: centralize confirmation alert priority into a single helper
wantedsystem Jun 11, 2026
0daf182
chore: bump keyring API and keyring SDK (#102)
stanleyyconsensys Jun 11, 2026
6987594
feat: add friction for malicious transactions instead of blocking
wantedsystem Jun 11, 2026
f41483c
Merge branch 'main' into refactor/confirmation-alert-priority-help
wantedsystem Jun 11, 2026
6acf5cd
Merge branch 'main' into feat/malicious-transaction-acknowledgement
wantedsystem Jun 11, 2026
5a9c9a6
fix: fix icon
wantedsystem Jun 11, 2026
16df8c7
fix: prioritize blocking state over ack swap and guard proceed handler
wantedsystem Jun 11, 2026
bb61b82
feat: expose XLM base reserve in asset metadata
khanti42 Jun 11, 2026
8b49bcb
Merge branch 'main' into feat/refresh-transaction-on-confirm
wantedsystem Jun 12, 2026
ddcb093
fix: fix comments
wantedsystem Jun 12, 2026
9e55d17
fix: extract destination amount from transaction result instead of u…
stanleyyconsensys Jun 12, 2026
9a582ef
fix: return false for changeTrustOpt on unfunded accounts
khanti42 Jun 12, 2026
d9a1d5d
Merge pull request #105 from MetaMask/feat/xlm-base-reserve-asset-met…
khanti42 Jun 12, 2026
dccfb5c
Merge branch 'main' into fix/change-trust-unfunded-account-status
khanti42 Jun 12, 2026
dce4151
feat: add sep41 transfer support in transaction mapper (#106)
stanleyyconsensys Jun 12, 2026
ae652f9
refactor: rename buildEmptyTrustLineEntries to buildDefaultAccountAss…
khanti42 Jun 12, 2026
aa79091
refactor: drop remote simulation from transaction scan
wantedsystem Jun 12, 2026
616ffae
Revert "refactor: drop remote simulation from transaction scan"
wantedsystem Jun 12, 2026
7350b93
mohamedamine.harty.external@banque-france.fr
wantedsystem Jun 12, 2026
90c61ec
Merge branch 'main' into feat/malicious-transaction-acknowledgement
wantedsystem Jun 12, 2026
b3819fc
Merge branch 'main' into refactor/confirmation-alert-priority-help
wantedsystem Jun 12, 2026
9db20d4
Merge pull request #103 from MetaMask/refactor/confirmation-alert-pri…
wantedsystem Jun 12, 2026
110c6a7
Merge remote-tracking branch 'origin/main' into feat/malicious-transa…
wantedsystem Jun 12, 2026
6622faa
Merge pull request #107 from MetaMask/fix/change-trust-unfunded-accou…
khanti42 Jun 12, 2026
6a1abba
feat: transaction scan 4 - add transacstion scan service (#101)
stanleyyconsensys Jun 12, 2026
de52c61
fix: re-check transaction validity before proceeding from ack screen
wantedsystem Jun 12, 2026
72af175
feat: add asset sync per hour (#108)
stanleyyconsensys Jun 15, 2026
c7430d5
fix: comments
wantedsystem Jun 15, 2026
bf91a18
feat: map SEP41 asset receive on transaction sync (#109)
stanleyyconsensys Jun 15, 2026
84b0234
Merge pull request #104 from MetaMask/feat/malicious-transaction-ackn…
wantedsystem Jun 15, 2026
fc54079
refactor: rebuild transaction with fresh expiry for security scan
wantedsystem Jun 15, 2026
f6baadc
chore: update snap manifest
wantedsystem Jun 15, 2026
24a7b4b
refactor(scan): make remote simulation flow-aware
wantedsystem Jun 15, 2026
2dc3187
chore: bump Yarn to 4.17.0 (#113)
mikesposito Jun 15, 2026
6487f77
chore: fix sync issue on account, add change trust keyring txn type a…
stanleyyconsensys Jun 16, 2026
d78671f
Merge pull request #112 from MetaMask/refactor/flow-aware-scan-simula…
wantedsystem Jun 16, 2026
c22427b
Merge branch 'main' into refactor/rebuild-tx-expiry-for-scan
wantedsystem Jun 16, 2026
2c581b3
chore: update native token name from `Lumen` to `XLM` (#115)
stanleyyconsensys Jun 16, 2026
76e6845
chore: adjust dust payment amount (#114)
stanleyyconsensys Jun 16, 2026
67da18e
feat: local-simulation fund flow on sign-transaction confirmation
wantedsystem Jun 16, 2026
8b533f5
Merge remote-tracking branch origin/main into feat/sign-transaction-l…
wantedsystem Jun 16, 2026
c020868
fix(confirmation): only schedule security scan when useSecurityAlerts…
wantedsystem Jun 17, 2026
7c9455a
fix: fix comments
wantedsystem Jun 17, 2026
5f36888
feat: use srcChainId and destChaindId to improve swap/bridge history
Julink-eth Jun 17, 2026
f4296a5
fix: support operation-source estimated changes
wantedsystem Jun 17, 2026
8c7a978
fix: hide native icon in estimated changes
wantedsystem Jun 17, 2026
118746a
Potential fix for pull request finding
Julink-eth Jun 18, 2026
0b65f25
chore: add missing unit test
Julink-eth Jun 18, 2026
6121ca6
fix: asset disappear after import (#116)
stanleyyconsensys Jun 18, 2026
4aaba66
fix: skip failed receive txn (#120)
stanleyyconsensys Jun 18, 2026
31cb0a9
chore: use asset Ids instead of chain Ids and simplify signAndSendTra…
Julink-eth Jun 19, 2026
5590841
feat: use blockaid simulation for estimated changes on sign-tx and send
wantedsystem Jun 19, 2026
ed711ff
fix: fix comments
wantedsystem Jun 19, 2026
3e31db2
fix: remove and adjust locate (#121)
stanleyyconsensys Jun 22, 2026
581672d
fix: incorrect icon url (#122)
stanleyyconsensys Jun 22, 2026
38e00cc
fix: transaction mapping to better handle swaps during pending to con…
stanleyyconsensys Jun 22, 2026
62e3ca7
fix: incorrect network icon (#124)
stanleyyconsensys Jun 22, 2026
a2afc8a
refactor: error handle batch 1 - add generic error class and implemen…
stanleyyconsensys Jun 22, 2026
bf12eb1
Merge branch 'main' into feat/improve-bridge-tx-history
Julink-eth Jun 22, 2026
ab51cea
Merge remote-tracking branch origin/main into feat/sign-transaction-l…
wantedsystem Jun 22, 2026
6353666
fix: update deriveEstimatedChanges tests to use loadOnChainAccountsSafe
wantedsystem Jun 22, 2026
563521d
chore: make asset Ids non optional
Julink-eth Jun 22, 2026
8ff7353
chore: fix unit tests
Julink-eth Jun 22, 2026
0f80b0c
Merge pull request #117 from MetaMask/feat/improve-bridge-tx-history
Julink-eth Jun 22, 2026
b9c1979
chore: refactor sign and send
stanleyyconsensys Jun 22, 2026
60df999
Potential fix for pull request finding
Julink-eth Jun 22, 2026
ac17f3f
Potential fix for pull request finding
Julink-eth Jun 22, 2026
86f1d74
Potential fix for pull request finding
Julink-eth Jun 22, 2026
20d1e04
Potential fix for pull request finding
Julink-eth Jun 22, 2026
315bd03
Potential fix for pull request finding
Julink-eth Jun 22, 2026
b1d2659
chore: fix format in unit tests
Julink-eth Jun 22, 2026
22e650e
chore: build manifest
Julink-eth Jun 22, 2026
61eb40e
Merge pull request #128 from MetaMask/refactor/sign-and-send
Julink-eth Jun 22, 2026
bfbca98
refactor: re-validate transaction every cycle
wantedsystem Jun 22, 2026
cc790d5
refactor: AssetMetadataService error handle (#125)
stanleyyconsensys Jun 23, 2026
29ecca6
refactor: PriceService error handle (#126)
stanleyyconsensys Jun 23, 2026
570b8fd
refactor: TransactionScanService error handle (#127)
stanleyyconsensys Jun 23, 2026
481d049
chore: remove unuse config (#130)
stanleyyconsensys Jun 23, 2026
594eb92
refactor: Keyring Handler and AccountService error handle (#129)
stanleyyconsensys Jun 23, 2026
855b817
refactor: OnChainAccount error handle (#131)
stanleyyconsensys Jun 23, 2026
eb09780
fix: rebuild expired envelopes and always feed security scan request
wantedsystem Jun 23, 2026
055ee60
fix: fix comments
wantedsystem Jun 23, 2026
2f9cf77
Merge branch 'main' into refactor/rebuild-tx-expiry-for-scan
wantedsystem Jun 23, 2026
a7dc750
Merge remote-tracking branch origin/main into feat/show-estimated-bal…
wantedsystem Jun 23, 2026
a6ddf34
fix: adjust fee multiplier with theshold (#132)
stanleyyconsensys Jun 24, 2026
1dfd818
Merge pull request #111 from MetaMask/refactor/rebuild-tx-expiry-for-…
wantedsystem Jun 24, 2026
74587d3
feat: estimated balance changes in confirmation dialog
wantedsystem Jun 24, 2026
ee9d722
Merge branch 'main' into feat/show-estimated-balance-changes-in-confi…
wantedsystem Jun 24, 2026
ab41c55
fix: copilot comments
wantedsystem Jun 24, 2026
8a712ca
refactor: TransacationService and ClientRequest handler error handle …
stanleyyconsensys Jun 25, 2026
fa705de
fix: comments
wantedsystem Jun 25, 2026
26fd368
fix: fix comments
wantedsystem Jun 25, 2026
bf9dd37
fix: surface Blockaid estimated changes and clarify scan error copy
wantedsystem Jun 25, 2026
6fc41be
fix: comments
wantedsystem Jun 25, 2026
7cf0a1f
Merge pull request #134 from MetaMask/feat/show-estimated-balance-cha…
wantedsystem Jun 26, 2026
9502f4d
feat: enhance transaction alert scanning (#138)
stanleyyconsensys Jun 26, 2026
1548105
fix: handle non-url origins
0xEdouardEth Jun 25, 2026
8b3aa5b
feat: Add pending transaction reconcile max attempt and max age in Tr…
stanleyyconsensys Jun 27, 2026
a0ada1e
bump: ts-jest to 29.4.11 (#143)
stanleyyconsensys Jun 29, 2026
221986b
refactor: WalletService error handle (#141)
stanleyyconsensys Jun 29, 2026
efdc1df
chore: remove fee compute for swap transaction and muliplier base inc…
stanleyyconsensys Jun 29, 2026
93044d1
chore: remove test dapp (#146)
stanleyyconsensys Jun 29, 2026
10e7c92
refactor: wrap method `trackError` with `trackErrorIfNeeded` and merg…
stanleyyconsensys Jun 29, 2026
2e50240
chore: fill error track gap - add trackError when track transaction /…
stanleyyconsensys Jun 30, 2026
54a6558
fix: review
0xEdouardEth Jun 30, 2026
990b34d
Merge pull request #140 from MetaMask/fix/validate-origin-url
0xEdouardEth Jun 30, 2026
c8544c5
chore: bump concurrently to 10.0.3 (#144)
stanleyyconsensys Jul 2, 2026
00124c8
chore: bump axios to 1.16.0 (#149)
stanleyyconsensys Jul 2, 2026
edb431b
bump: form-data to 4.0.6 (#150)
stanleyyconsensys Jul 3, 2026
6eacf19
chore: update XLM icon (#152)
stanleyyconsensys Jul 3, 2026
07afe20
fix: update env example (#153)
stanleyyconsensys Jul 6, 2026
919500d
fix: preserve decimal notation for small amounts (#156)
jeremytsng Jul 15, 2026
fa28e9e
chore: update publish ci (#157)
stanleyyconsensys Jul 15, 2026
b8fac67
chore: add migration notice to readme (#155)
Julink-eth Jul 16, 2026
c25dcb3
chore: enhancement performance by avoid parallel account sync (#158)
stanleyyconsensys Jul 16, 2026
8290dc1
fix: emit balance update when it become zero (#161)
stanleyyconsensys Jul 22, 2026
d37720d
fix: add default fallback URLs for token, static, and price APIs (#162)
jeremytsng Jul 22, 2026
287d956
chore: align dependencies typescript, eslint, Oxfmt with monorepo (#154)
Julink-eth Jul 22, 2026
96e7161
chore: add explorer fallback url (#163)
stanleyyconsensys Jul 27, 2026
e35f496
fix: poll Horizon after 5s to match Stellar block time
jeremytsng Jul 24, 2026
d5ef571
feat: add read me (#166)
stanleyyconsensys Jul 27, 2026
e9dca49
fix: lint readme (#167)
stanleyyconsensys Jul 27, 2026
22b3e1d
Merge pull request #165 from MetaMask/fix/update-track-tx-time
jeremytsng Jul 27, 2026
17b863e
fix: read only for asset handler (#168)
stanleyyconsensys Jul 27, 2026
9010bb5
chore: align package tsconfig, jest and eslint config with monorepo
jeremytsng Jul 27, 2026
ebccc8a
Merge pull request #164 from MetaMask/chore/monorepo-prestage
jeremytsng Jul 29, 2026
90aa99a
feat: enrich asset trustline information via keyring api (#170)
stanleyyconsensys Jul 29, 2026
6b8949c
fix: remove base64 decode on `SignMessage` (#171)
stanleyyconsensys Jul 30, 2026
fbb8967
fix: sign transaction and sign auth entry layout (#172)
stanleyyconsensys Aug 1, 2026
be037bc
fix: add Authorizations section on `SignTransaction` and `SignAuthEnt…
stanleyyconsensys Aug 6, 2026
3346bf7
fix: show source account in `SignTransaction` dialog (#174)
stanleyyconsensys Aug 7, 2026
740c7e8
fix: source account not show (#175)
stanleyyconsensys Aug 7, 2026
bd6ff6d
fix: always show memo (#176)
stanleyyconsensys Aug 7, 2026
a07b3b5
Merge pull request #151 from MetaMask/feat/stellar-keyring-v2
jeremytsng Aug 11, 2026
569f171
fix: computeFee's required amount taking into account reserve balance…
Julink-eth Aug 12, 2026
6995980
fix: allow `dilutedMarketCap` with negative value for price api respo…
stanleyyconsensys Aug 12, 2026
52c1576
Merge remote-tracking branch 'snap-stellar-wallet/main' into migrate-…
stanleyyconsensys Aug 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .depcheckrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ignore-patterns": [".yarn/"]
}
115 changes: 115 additions & 0 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
name: Validate

on:
workflow_call:
secrets:
RPC_URL_MAINNET:
required: true
HORIZON_URL_MAINNET:
required: true
EXPLORER_MAINNET_BASE_URL:
required: true
RPC_URL_TESTNET:
required: true
HORIZON_URL_TESTNET:
required: true
EXPLORER_TESTNET_BASE_URL:
required: true
TOKEN_API_BASE_URL:
required: true
STATIC_API_BASE_URL:
required: true
PRICE_API_BASE_URL:
required: true

jobs:
prepare:
name: Prepare
runs-on: ubuntu-latest
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v1
with:
is-high-risk-environment: false
- name: Install Yarn dependencies
run: yarn --immutable
Comment on lines +26 to +35

build:
name: Build
runs-on: ubuntu-latest
needs:
- prepare
env:
ENVIRONMENT: production
LOG_LEVEL: silent
RPC_URL_MAINNET: ${{ secrets.RPC_URL_MAINNET }}
HORIZON_URL_MAINNET: ${{ secrets.HORIZON_URL_MAINNET }}
EXPLORER_MAINNET_BASE_URL: ${{ secrets.EXPLORER_MAINNET_BASE_URL }}
RPC_URL_TESTNET: ${{ secrets.RPC_URL_TESTNET }}
HORIZON_URL_TESTNET: ${{ secrets.HORIZON_URL_TESTNET }}
EXPLORER_TESTNET_BASE_URL: ${{ secrets.EXPLORER_TESTNET_BASE_URL }}
TOKEN_API_BASE_URL: ${{ secrets.TOKEN_API_BASE_URL }}
STATIC_API_BASE_URL: ${{ secrets.STATIC_API_BASE_URL }}
PRICE_API_BASE_URL: ${{ secrets.PRICE_API_BASE_URL }}
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v1
with:
is-high-risk-environment: false
- run: yarn --immutable --immutable-cache || yarn install
- run: |
npm rebuild --verbose sharp
yarn workspace @metamask/stellar-wallet-snap build
Comment on lines +37 to +62

lint:
name: Lint
runs-on: ubuntu-latest
needs:
- prepare
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v1
with:
is-high-risk-environment: false
- run: yarn --immutable --immutable-cache || yarn install
- run: yarn lint
- 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
Comment on lines +64 to +82

test:
name: Tests
runs-on: ubuntu-latest
needs:
- prepare
env:
ENVIRONMENT: test
LOG_LEVEL: silent
RPC_URL_MAINNET: ${{ secrets.RPC_URL_MAINNET }}
HORIZON_URL_MAINNET: ${{ secrets.HORIZON_URL_MAINNET }}
EXPLORER_MAINNET_BASE_URL: ${{ secrets.EXPLORER_MAINNET_BASE_URL }}
RPC_URL_TESTNET: ${{ secrets.RPC_URL_TESTNET }}
HORIZON_URL_TESTNET: ${{ secrets.HORIZON_URL_TESTNET }}
EXPLORER_TESTNET_BASE_URL: ${{ secrets.EXPLORER_TESTNET_BASE_URL }}
TOKEN_API_BASE_URL: ${{ secrets.TOKEN_API_BASE_URL }}
STATIC_API_BASE_URL: ${{ secrets.STATIC_API_BASE_URL }}
PRICE_API_BASE_URL: ${{ secrets.PRICE_API_BASE_URL }}
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v1
with:
is-high-risk-environment: false
- run: yarn install --immutable
- name: Build for tests
run: yarn workspace @metamask/stellar-wallet-snap build
- name: Run tests
run: yarn test
- name: Upload test artifacts
uses: actions/upload-artifact@v4
with:
name: tests-artifacts-coverage
path: packages/snap/coverage
67 changes: 67 additions & 0 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Create Release PR

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, or patch. 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@v4
with:
fetch-depth: 0
ref: ${{ github.event.inputs.base-branch }}
Comment on lines +24 to +27
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- uses: MetaMask/action-create-release-pr@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release-type: ${{ github.event.inputs.release-type }}
release-version: ${{ github.event.inputs.release-version }}
update-snap-version:
runs-on: ubuntu-latest
permissions:
contents: write
needs: create-release-pr
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Update Snap Version
id: update-release-pr
shell: bash
run: |
chmod +x ./scripts/update-release-pr.sh
./scripts/update-release-pr.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ENVIRONMENT: production
LOG_LEVEL: silent
RPC_URL_MAINNET: ${{ secrets.RPC_URL_MAINNET }}
HORIZON_URL_MAINNET: ${{ secrets.HORIZON_URL_MAINNET }}
EXPLORER_MAINNET_BASE_URL: ${{ secrets.EXPLORER_MAINNET_BASE_URL }}
RPC_URL_TESTNET: ${{ secrets.RPC_URL_TESTNET }}
HORIZON_URL_TESTNET: ${{ secrets.HORIZON_URL_TESTNET }}
EXPLORER_TESTNET_BASE_URL: ${{ secrets.EXPLORER_TESTNET_BASE_URL }}
TOKEN_API_BASE_URL: ${{ secrets.TOKEN_API_BASE_URL }}
STATIC_API_BASE_URL: ${{ secrets.STATIC_API_BASE_URL }}
PRICE_API_BASE_URL: ${{ secrets.PRICE_API_BASE_URL }}
33 changes: 33 additions & 0 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Crowdin Action

permissions:
contents: write
pull-requests: write

on:
push:
branches:
- main

jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: MetaMask/action-checkout-and-setup@v1
with:
is-high-risk-environment: false

- name: crowdin action
uses: crowdin/github-action@a3160b9e5a9e00739392c23da5e580c6cabe526d
with:
upload_translations: false
download_translations: true
github_user_name: metamaskbot
github_user_email: metamaskbot@users.noreply.github.com
env:
GITHUB_ACTOR: metamaskbot
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
48 changes: 12 additions & 36 deletions .github/workflows/publish-preview.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish a preview build
name: Publish Preview

on:
issue_comment:
Expand All @@ -15,45 +15,21 @@ jobs:
with:
rename-after-install-and-build: true
environment: default-branch
build-command: yarn workspace @metamask/stellar-wallet-snap build:prod
docs-url: 'https://github.com/MetaMask/core/blob/main/docs/processes/preview-builds.md'
secrets:
PUBLISH_PREVIEW_NPM_TOKEN: ${{ secrets.PUBLISH_PREVIEW_NPM_TOKEN }}
BUILD_ENV: |
{
"LOG_LEVEL": "${{ secrets.LOG_LEVEL }}",
"DEFAULT_ADDRESS_TYPE": "${{ secrets.DEFAULT_ADDRESS_TYPE }}",
"ESPLORA_BITCOIN": "${{ secrets.ESPLORA_BITCOIN }}",
"ESPLORA_TESTNET": "${{ secrets.ESPLORA_TESTNET }}",
"ESPLORA_TESTNET4": "${{ secrets.ESPLORA_TESTNET4 }}",
"ESPLORA_SIGNET": "${{ secrets.ESPLORA_SIGNET }}",
"ESPLORA_REGTEST": "${{ secrets.ESPLORA_REGTEST }}",
"PRICE_API_URL": "${{ secrets.PRICE_API_URL }}",
"PRICE_API_BASE_URL": "${{ vars.PRICE_API_BASE_URL }}",
"ENVIRONMENT": "production",
"RPC_URL_LIST_MAINNET": "${{ secrets.RPC_URL_LIST_MAINNET }}",
"RPC_URL_LIST_NILE_TESTNET": "${{ vars.RPC_URL_LIST_NILE_TESTNET }}",
"RPC_URL_LIST_SHASTA_TESTNET": "${{ vars.RPC_URL_LIST_SHASTA_TESTNET }}",
"LOCAL_API_BASE_URL": "${{ vars.LOCAL_API_BASE_URL }}",
"TOKEN_API_BASE_URL": "${{ vars.TOKEN_API_BASE_URL }}",
"STATIC_API_BASE_URL": "${{ vars.STATIC_API_BASE_URL }}",
"SECURITY_ALERTS_API_BASE_URL": "${{ vars.SECURITY_ALERTS_API_BASE_URL }}",
"NFT_API_BASE_URL": "${{ vars.NFT_API_BASE_URL }}",
"EXPLORER_MAINNET_BASE_URL": "${{ vars.EXPLORER_MAINNET_BASE_URL }}",
"EXPLORER_NILE_BASE_URL": "${{ vars.EXPLORER_NILE_BASE_URL }}",
"EXPLORER_SHASTA_BASE_URL": "${{ vars.EXPLORER_SHASTA_BASE_URL }}",
"TRONGRID_BASE_URL_MAINNET": "${{ secrets.TRONGRID_BASE_URL_MAINNET }}",
"TRONGRID_BASE_URL_NILE": "${{ vars.TRONGRID_BASE_URL_NILE }}",
"TRONGRID_BASE_URL_SHASTA": "${{ vars.TRONGRID_BASE_URL_SHASTA }}",
"TRON_HTTP_BASE_URL_MAINNET": "${{ secrets.TRON_HTTP_BASE_URL_MAINNET }}",
"TRON_HTTP_BASE_URL_NILE": "${{ vars.TRON_HTTP_BASE_URL_NILE }}",
"TRON_HTTP_BASE_URL_SHASTA": "${{ vars.TRON_HTTP_BASE_URL_SHASTA }}",
"RPC_URL_MAINNET_LIST": "${{ secrets.RPC_URL_MAINNET_LIST }}",
"RPC_URL_DEVNET_LIST": "${{ secrets.RPC_URL_DEVNET_LIST }}",
"RPC_URL_TESTNET_LIST": "${{ vars.RPC_URL_TESTNET_LIST }}",
"RPC_URL_LOCALNET_LIST": "${{ vars.RPC_URL_LOCALNET_LIST }}",
"RPC_WEB_SOCKET_URL_MAINNET": "${{ secrets.RPC_WEB_SOCKET_URL_MAINNET }}",
"RPC_WEB_SOCKET_URL_DEVNET": "${{ secrets.RPC_WEB_SOCKET_URL_DEVNET }}",
"RPC_WEB_SOCKET_URL_TESTNET": "${{ vars.RPC_WEB_SOCKET_URL_TESTNET }}",
"RPC_WEB_SOCKET_URL_LOCALNET": "${{ vars.RPC_WEB_SOCKET_URL_LOCALNET }}",
"EXPLORER_BASE_URL": "${{ vars.EXPLORER_BASE_URL }}"
"LOG_LEVEL": "all",
"RPC_URL_MAINNET": "${{ secrets.RPC_URL_MAINNET }}",
"HORIZON_URL_MAINNET": "${{ secrets.HORIZON_URL_MAINNET }}",
"EXPLORER_MAINNET_BASE_URL": "${{ secrets.EXPLORER_MAINNET_BASE_URL }}",
"RPC_URL_TESTNET": "${{ secrets.RPC_URL_TESTNET }}",
"HORIZON_URL_TESTNET": "${{ secrets.HORIZON_URL_TESTNET }}",
"EXPLORER_TESTNET_BASE_URL": "${{ secrets.EXPLORER_TESTNET_BASE_URL }}",
"TOKEN_API_BASE_URL": "${{ secrets.TOKEN_API_BASE_URL }}",
"STATIC_API_BASE_URL": "${{ secrets.STATIC_API_BASE_URL }}",
"PRICE_API_BASE_URL": "${{ secrets.PRICE_API_BASE_URL }}"
}
Loading
Loading