Skip to content

Commit

Permalink
feat: added wbtc
Browse files Browse the repository at this point in the history
  • Loading branch information
bangjelkoski committed Aug 14, 2021
1 parent ad65127 commit 4105e01
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
11 changes: 11 additions & 0 deletions packages/token-metadata/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.14](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@0.0.13...@injectivelabs/token-metadata@0.0.14) (2021-08-14)


### Features

* added wbtc ([4d58c89](https://github.com/InjectiveLabs/injective-ts/commit/4d58c8980ac991a62959832ddaaadb6a3e284d3f))





## [0.0.13](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@0.0.12...@injectivelabs/token-metadata@0.0.13) (2021-08-05)

**Note:** Version bump only for package @injectivelabs/token-metadata
Expand Down
2 changes: 1 addition & 1 deletion packages/token-metadata/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@injectivelabs/token-metadata",
"description": "ERC20 token metadata. Name, symbol, decimals, etc.",
"version": "0.0.13",
"version": "0.0.14",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/token-metadata/src/images/wbtc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/token-metadata/src/tokens/maps/byAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { TokenMeta } from '../../types'
import tokens from '../tokens'

export default {
[tokens.BTC.address.toLowerCase()]: tokens.BTC,
[tokens.wBTC.address.toLowerCase()]: tokens.wBTC,
[tokens.WETH.address.toLowerCase()]: tokens.WETH,
[tokens.INJ.address.toLowerCase()]: tokens.INJ,
[tokens.USDT.address.toLowerCase()]: tokens.USDT,
Expand Down
8 changes: 8 additions & 0 deletions packages/token-metadata/src/tokens/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ export default {
logo: 'bitcoin.svg',
symbol: 'BTC',
decimals: 18,
address: '',
},

wBTC: {
name: 'Wrapped Bitcoin',
logo: 'wbtc.svg',
symbol: 'wBTC',
decimals: 8,
address: '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599',
},

Expand Down

0 comments on commit 4105e01

Please sign in to comment.