Skip to content
Merged
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/assets-controllers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Added optional filtering of Tron staking tokens (energy, bandwidth) in asset selectors `selectAssetsBySelectedAccountGroup` (defaults to `true`) ([#7198](https://github.com/MetaMask/core/pull/7198))

## [89.0.1]

### Fixed
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,327 @@
export const MOCK_TRON_TOKENS = {
'tron:728126428': [
{
accountType: 'tron:eoa',
assetId: 'tron:728126428/slip44:195',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Tron',
symbol: 'TRX',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 6,
rawBalance: '0x0',
balance: '0',
fiat: {
balance: 0,
currency: 'usd',
conversionRate: 0.28516,
},
chainId: 'tron:728126428',
},
{
accountType: 'tron:eoa',
assetId: 'tron:728126428/slip44:195-staked-for-bandwidth',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Staked for Bandwidth',
symbol: 'sTRX-BANDWIDTH',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 6,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:728126428',
fiat: undefined,
},
{
accountType: 'tron:eoa',
assetId: 'tron:728126428/slip44:195-staked-for-energy',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Staked for Energy',
symbol: 'sTRX-ENERGY',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 6,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:728126428',
fiat: undefined,
},
{
accountType: 'tron:eoa',
assetId: 'tron:728126428/slip44:bandwidth',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Bandwidth',
symbol: 'BANDWIDTH',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 0,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:728126428',
fiat: undefined,
},
{
accountType: 'tron:eoa',
assetId: 'tron:728126428/slip44:maximum-bandwidth',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Max Bandwidth',
symbol: 'MAX-BANDWIDTH',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 0,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:728126428',
fiat: undefined,
},
{
accountType: 'tron:eoa',
assetId: 'tron:728126428/slip44:energy',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Energy',
symbol: 'ENERGY',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 0,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:728126428',
fiat: undefined,
},
{
accountType: 'tron:eoa',
assetId: 'tron:728126428/slip44:maximum-energy',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Max Energy',
symbol: 'MAX-ENERGY',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 0,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:728126428',
fiat: undefined,
},
],
'tron:3448148188': [
{
accountType: 'tron:eoa',
assetId: 'tron:3448148188/slip44:195',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Tron',
symbol: 'TRX',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 6,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:3448148188',
fiat: undefined,
},
{
accountType: 'tron:eoa',
assetId: 'tron:3448148188/slip44:195-staked-for-bandwidth',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Staked for Bandwidth',
symbol: 'sTRX-BANDWIDTH',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 6,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:3448148188',
fiat: undefined,
},
{
accountType: 'tron:eoa',
assetId: 'tron:3448148188/slip44:195-staked-for-energy',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Staked for Energy',
symbol: 'sTRX-ENERGY',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 6,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:3448148188',
fiat: undefined,
},
{
accountType: 'tron:eoa',
assetId: 'tron:3448148188/slip44:bandwidth',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Bandwidth',
symbol: 'BANDWIDTH',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 0,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:3448148188',
fiat: undefined,
},
{
accountType: 'tron:eoa',
assetId: 'tron:3448148188/slip44:maximum-bandwidth',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Max Bandwidth',
symbol: 'MAX-BANDWIDTH',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 0,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:3448148188',
fiat: undefined,
},
{
accountType: 'tron:eoa',
assetId: 'tron:3448148188/slip44:energy',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Energy',
symbol: 'ENERGY',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 0,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:3448148188',
fiat: undefined,
},
{
accountType: 'tron:eoa',
assetId: 'tron:3448148188/slip44:maximum-energy',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Max Energy',
symbol: 'MAX-ENERGY',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 0,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:3448148188',
fiat: undefined,
},
],
'tron:2494104990': [
{
accountType: 'tron:eoa',
assetId: 'tron:2494104990/slip44:195',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Tron',
symbol: 'TRX',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 6,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:2494104990',
fiat: undefined,
},
{
accountType: 'tron:eoa',
assetId: 'tron:2494104990/slip44:195-staked-for-bandwidth',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Staked for Bandwidth',
symbol: 'sTRX-BANDWIDTH',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 6,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:2494104990',
fiat: undefined,
},
{
accountType: 'tron:eoa',
assetId: 'tron:2494104990/slip44:195-staked-for-energy',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Staked for Energy',
symbol: 'sTRX-ENERGY',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 6,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:2494104990',
fiat: undefined,
},
{
accountType: 'tron:eoa',
assetId: 'tron:2494104990/slip44:bandwidth',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Bandwidth',
symbol: 'BANDWIDTH',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 0,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:2494104990',
fiat: undefined,
},
{
accountType: 'tron:eoa',
assetId: 'tron:2494104990/slip44:maximum-bandwidth',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Max Bandwidth',
symbol: 'MAX-BANDWIDTH',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 0,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:2494104990',
fiat: undefined,
},
{
accountType: 'tron:eoa',
assetId: 'tron:2494104990/slip44:energy',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Energy',
symbol: 'ENERGY',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 0,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:2494104990',
fiat: undefined,
},
{
accountType: 'tron:eoa',
assetId: 'tron:2494104990/slip44:maximum-energy',
isNative: true,
image:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/info/logo.png',
name: 'Max Energy',
symbol: 'MAX-ENERGY',
accountId: 'de5c3465-d01e-4091-a219-232903e982bb',
decimals: 0,
rawBalance: '0x0',
balance: '0',
chainId: 'tron:2494104990',
fiat: undefined,
},
],
} as const;
Loading
Loading