Skip to content

Commit

Permalink
Merge pull request #1085 from AmbireTech/add/metamask-contract-metadata
Browse files Browse the repository at this point in the history
Humanizer: Aave humanization and humanizerInfo logos updates
  • Loading branch information
JIOjosBG authored Nov 8, 2024
2 parents 1e4004c + 1043829 commit e8928b3
Show file tree
Hide file tree
Showing 6 changed files with 957 additions and 747 deletions.
4 changes: 3 additions & 1 deletion scripts/updateHumanizerInfoWithMetaMaskContactMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ const humanizerInfoPath = path.join(
'humanizerInfo.json'
)

// use don't use master, so the data source can only be changed intentionally before running the script
const LATEST_MASTER_COMMIT = 'c5b611324607d87a5fc3315094087962acd45e09'
// fixed for specific release
const githubSourceBaseUrl = 'https://raw.githubusercontent.com/MetaMask/contract-metadata/v2.5.0'
const githubSourceBaseUrl = `https://raw.githubusercontent.com/MetaMask/contract-metadata/${LATEST_MASTER_COMMIT}`

// Updates Ambire's Humanizer (info) JSON with the Ethereum contract addresses metadata (decimals, symbol, name, logo) pulled from the @metamask/gstacontract-metadata repo.
fetch(`${githubSourceBaseUrl}/contract-map.json`)
Expand Down
Loading

0 comments on commit e8928b3

Please # to comment.