Skip to content

Commit

Permalink
feat: add MNT token (#106)
Browse files Browse the repository at this point in the history
* feat: add MNT token

* feat: add joiSchema
  • Loading branch information
sogipec authored Oct 11, 2023
1 parent 90add0f commit 74be3e4
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 7 deletions.
49 changes: 49 additions & 0 deletions ERC20_LIST.json
Original file line number Diff line number Diff line change
Expand Up @@ -1610,6 +1610,55 @@
"useInSwap": false,
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/xBSX.svg"
}
},
"59144": {
"0x1a7e4e63778B4f12a199C062f3eFdD288afCBce8": {
"address": "0x1a7e4e63778B4f12a199C062f3eFdD288afCBce8",
"name": "Angle Euro",
"decimals": 18,
"symbol": "agEUR",
"hasPermit": true,
"useInSwap": true,
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-assets/main/0_tokens/agEUR/agEUR.svg"
},
"0x004626A008B1aCdC4c74ab51644093b155e59A23": {
"address": "0x004626A008B1aCdC4c74ab51644093b155e59A23",
"name": "Staked agEUR",
"decimals": 18,
"symbol": "stEUR",
"useInSwap": false,
"hasPermit": false,
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-assets/main/0_tokens/stEUR/stEUR.svg"
}
},
"5000": {
"0xA61BeB4A3d02decb01039e378237032B351125B4": {
"address": "0xA61BeB4A3d02decb01039e378237032B351125B4",
"name": "Angle Euro",
"decimals": 18,
"symbol": "agEUR",
"hasPermit": true,
"useInSwap": true,
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-assets/main/0_tokens/agEUR/agEUR.svg"
},
"0x004626A008B1aCdC4c74ab51644093b155e59A23": {
"address": "0x004626A008B1aCdC4c74ab51644093b155e59A23",
"name": "Staked agEUR",
"decimals": 18,
"symbol": "stEUR",
"useInSwap": false,
"hasPermit": false,
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-assets/main/0_tokens/stEUR/stEUR.svg"
},
"0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000": {
"address": "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000",
"name": "Mantle",
"decimals": 18,
"symbol": "MNT",
"hasPermit": false,
"useInSwap": true,
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/MNT.svg"
}
}
}
]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "greedythib <thibaudb@angle.money>",
"license": "MIT",
"dependencies": {
"@angleprotocol/sdk": "^3.0.87",
"@angleprotocol/sdk": "^3.0.121",
"ethers": "^5.7.1",
"joi": "^17.6.0",
"prettier": "^2.8.2"
Expand Down
24 changes: 24 additions & 0 deletions src/assets/tokens/MNT.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,7 @@ export const joiSchema = Joi.object().keys({
[ChainId.GNOSIS]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.BASE]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.POLYGONZKEVM]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.LINEA]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.MANTLE]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.ZKSYNC]: Joi.object().pattern(/^/, tokenInfo),
});
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@angleprotocol/sdk@^3.0.87":
version "3.0.89"
resolved "https://registry.yarnpkg.com/@angleprotocol/sdk/-/sdk-3.0.89.tgz#29b5b201947128f35e7f8bcba31507ce1d7bbb82"
integrity sha512-CJ0Vg4sJe5w9DoLDa5o9f/lsmJ8FLIZy2idYO6HKDUFvIg2VHvOepwvehH0ixXGHx4KV5HN0xjNtaMfj9YHppg==
"@angleprotocol/sdk@^3.0.121":
version "3.0.121"
resolved "https://registry.yarnpkg.com/@angleprotocol/sdk/-/sdk-3.0.121.tgz#53911149c4a43f032b1979a4c679858a7dbb2ba6"
integrity sha512-XAhNlFIEbKm2f0nQHF0sTA56OAPlsZD5OtTvD32CnTM0Lk2ezIRjgKJf5imwpZxMRgP/5jKtLZyP+fi8o/Ry0w==
dependencies:
"@typechain/ethers-v5" "^10.0.0"
"@types/lodash" "^4.14.180"
Expand All @@ -15,7 +15,7 @@
jsbi "^4.3.0"
keccak256 "^1.0.6"
lodash "^4.17.21"
merkletreejs "^0.3.9"
merkletreejs "^0.3.10"
tiny-invariant "^1.1.0"
typechain "^8.0.0"

Expand Down Expand Up @@ -1135,7 +1135,7 @@ md5.js@^1.3.4:
inherits "^2.0.1"
safe-buffer "^5.1.2"

merkletreejs@^0.3.9:
merkletreejs@^0.3.10:
version "0.3.10"
resolved "https://registry.yarnpkg.com/merkletreejs/-/merkletreejs-0.3.10.tgz#b9abdfc5e3aadaf9eb8b0a35c4b87aea33f5d4b7"
integrity sha512-lin42tKfRdkW+6iE5pjtQ9BnH+1Hk3sJ5Fn9hUUSjcXRcJbSISHgPCfYvMNEXiNqZPhz/TyRPEV30qgnujsQ7A==
Expand Down

0 comments on commit 74be3e4

Please sign in to comment.