Skip to content

Commit 2e4e7a8

Browse files
authored
feat(core/sol): misc features add (#601)
* feat(core/sol): add built-in SPL tokens * feat(core/ethereum): add EVM built-in tokens * feat(core/tron): add new TRON built-in token BTT 1. refactor some related code * feat(core/cosmos): add built-in cosmos network Babylon and Noble 1. add support for Noble-specific operations(LOCK/UNLOCK) * feat(core/aptos): add new transaction signing type for Aptos * feat(core): add support for Babylon slashing transaction with non-zero value OP_RETURN output * chore(core): add pagination support for i18n tools and update i18n text entries * feat(core): misc features add 1. expand the batch public key export interface to include BIP32 node info 2. add support for getting the Kaspa address the same as official ones 3. adjust the default auto shut-down time to 5 minutes * fix(core/sol): handle the situation where the signer is missing in the memo program * chore: bump firmware version to 4.11.0
1 parent 3a1fafb commit 2e4e7a8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2616
-1038
lines changed

common/defs/evm_tokens/1.json

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,29 +1291,16 @@
12911291
"marketCap": "192347985.13471806"
12921292
},
12931293
{
1294-
"_id": "",
12951294
"name": "HashKey Platform Token",
12961295
"symbol": "HSK",
12971296
"address": "0xe7c6bf469e97eeb0bfb74c8dbff5bd47d4c1c98a",
1298-
"decimals": 18,
1299-
"logoURI": "",
1300-
"impl": "evm",
1301-
"status": "LISTED",
1302-
"verified": true,
1303-
"security": false,
1304-
"addToIndex": false,
1305-
"chainId": "1",
1306-
"source": [
1307-
"sushi",
1308-
"Coingecko"
1309-
],
1310-
"checked": true,
1311-
"coingeckoId": "",
1312-
"swftId": "",
1313-
"createdAt": "",
1314-
"updatedAt": "",
1315-
"__v": 0,
1316-
"marketCap": ""
1297+
"decimals": 18
1298+
},
1299+
{
1300+
"name": "Wrapped Ether",
1301+
"symbol": "WETH",
1302+
"address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
1303+
"decimals": 18
13171304
}
13181305
]
13191306
}

common/defs/evm_tokens/10.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,30 @@
216216
"createdAt": "2022-08-02T04:11:01.706Z",
217217
"updatedAt": "2022-09-16T16:46:53.898Z",
218218
"__v": 0
219+
},
220+
{
221+
"name": "USD Coin",
222+
"symbol": "USDC",
223+
"address": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
224+
"decimals": 6
225+
},
226+
{
227+
"name": "Wrapped Ether",
228+
"symbol": "WETH",
229+
"address": "0x4200000000000000000000000000000000000006",
230+
"decimals": 18
231+
},
232+
{
233+
"name": "Optimism",
234+
"symbol": "OP",
235+
"address": "0x4200000000000000000000000000000000000042",
236+
"decimals": 18
237+
},
238+
{
239+
"name": "USD Coin (Bridged from Ethereum)",
240+
"symbol": "USDC.e",
241+
"address": "0x7F5c764cBc14f9669B88837ca1490cCa17c31607",
242+
"decimals": 6
219243
}
220244
]
221245
}

common/defs/evm_tokens/137.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[
66
{
77
"_id": "62e8a3d38edb7c3c91a55cbe",
8-
"name": "Tether",
8+
"name": "(PoS) Tether USD",
99
"symbol": "USDT",
1010
"address": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
1111
"decimals": 6,
@@ -32,8 +32,8 @@
3232
},
3333
{
3434
"_id": "62e8a3d38edb7c3c91a55cbb",
35-
"name": "USD Coin",
36-
"symbol": "USDC",
35+
"name": "USD Coin (PoS)",
36+
"symbol": "USDC.e",
3737
"address": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
3838
"decimals": 6,
3939
"logoURI": "https://common.onekey-asset.com/token/evm-1/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48.jpg",
@@ -1240,6 +1240,12 @@
12401240
"updatedAt": "2022-09-16T16:46:51.463Z",
12411241
"__v": 0,
12421242
"marketCap": 0
1243+
},
1244+
{
1245+
"name": "USD Coin",
1246+
"symbol": "USDC",
1247+
"address": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
1248+
"decimals": 6
12431249
}
12441250
]
12451251
}

common/defs/evm_tokens/250.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,12 @@
673673
"createdAt": "2022-08-02T04:11:00.203Z",
674674
"updatedAt": "2022-09-16T16:46:52.000Z",
675675
"__v": 0
676+
},
677+
{
678+
"name": "Frapped USDT",
679+
"symbol": "fUSDT",
680+
"address": "0x049d68029688eabf473097a2fc38ef61633a3c7a",
681+
"decimals": 18
676682
}
677683
]
678684
}

common/defs/evm_tokens/42161.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
},
3232
{
3333
"_id": "62e8a3d58edb7c3c91a56aaa",
34-
"name": "USD Coin",
35-
"symbol": "USDC",
34+
"name": "Bridged USDC",
35+
"symbol": "USDC.e",
3636
"address": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
3737
"decimals": 6,
3838
"logoURI": "https://common.onekey-asset.com/token/evm-1/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48.jpg",
@@ -788,6 +788,18 @@
788788
"updatedAt": "2022-09-16T16:46:53.782Z",
789789
"__v": 0,
790790
"marketCap": 0
791+
},
792+
{
793+
"name": "USD Coin",
794+
"symbol": "USDC",
795+
"address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
796+
"decimals": 6
797+
},
798+
{
799+
"name": "Arbitrum",
800+
"symbol": "ARB",
801+
"address": "0x912CE59144191C1204E64559FE8253a0e49E6548",
802+
"decimals": 18
791803
}
792804
]
793805
}

common/defs/evm_tokens/43114.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,12 @@
781781
"createdAt": "2022-09-16T16:22:33.196Z",
782782
"updatedAt": "2022-09-19T01:27:42.874Z",
783783
"__v": 0
784+
},
785+
{
786+
"name": "Wrapped BTC",
787+
"symbol": "WBTC",
788+
"address": "0x408D4cD0ADb7ceBd1F1A1C33A0Ba2098E1295bAB",
789+
"decimals": 8
784790
}
785791
]
786792
}

common/defs/evm_tokens/56.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,6 +1239,12 @@
12391239
"updatedAt": "2022-09-16T16:46:52.106Z",
12401240
"__v": 0,
12411241
"marketCap": 0
1242+
},
1243+
{
1244+
"name": "Wrapped BNB",
1245+
"symbol": "WBNB",
1246+
"address": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
1247+
"decimals": 18
12421248
}
12431249
]
12441250
}

common/defs/evm_tokens/8453.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "Base",
3+
"chain": "Base",
4+
"tokens": [
5+
{
6+
"name": "USD Coin",
7+
"symbol": "USDC",
8+
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
9+
"decimals": 6
10+
},
11+
{
12+
"name": "Bridged Tether USD",
13+
"symbol": "USDT",
14+
"address": "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2",
15+
"decimals": 6
16+
},
17+
{
18+
"name": "Wrapped Ether",
19+
"symbol": "WETH",
20+
"address": "0x4200000000000000000000000000000000000006",
21+
"decimals": 18
22+
},
23+
{
24+
"name": "Dai Stablecoin",
25+
"symbol": "DAI",
26+
"address": "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
27+
"decimals": 18
28+
}
29+
]
30+
}

common/defs/support.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4948,6 +4948,7 @@
49484948
"tron:TRC20:USDT": "3.0.0",
49494949
"tron:TRC20:WBTC": "3.0.0",
49504950
"tron:TRC20:WBTT": "3.0.0",
4951+
"tron:TRC20:BTT": "4.11.0",
49514952
"tron:TRC20:WIN": "3.0.0",
49524953
"tron:TRC20:WTRX": "3.0.0"
49534954
},

common/defs/tron/tron_tokens.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,15 @@
138138
"links": {
139139
"Homepage": "https://dogecoin.com/"
140140
}
141+
},
142+
{
143+
"symbol": "BTT",
144+
"name": "BitTorrent",
145+
"type": "TRC20",
146+
"address": "TAFjULxiVgT4qWk6UZwjqwZXTSaGaqnVp4",
147+
"decimals": 18,
148+
"links": {
149+
"Homepage": "https://bittorrentchain.io/"
150+
}
141151
}
142152
]

0 commit comments

Comments
 (0)