-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: support all network * feat: print EmmcFileWrite error * chore: release version 1.0.10-alpha.2
- Loading branch information
1 parent
3cad9ec
commit 9753199
Showing
24 changed files
with
805 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/connect-examples/expo-example/src/constants/connect.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export const CONNECT_SRC = 'https://jssdk.onekey.so/1.0.10-alpha.1/'; | ||
export const CONNECT_SRC = 'https://jssdk.onekey.so/1.0.10-alpha.2/'; | ||
// export const CONNECT_SRC = 'https://localhost:8087/'; |
294 changes: 294 additions & 0 deletions
294
packages/connect-examples/expo-example/src/data/allnetwork.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,294 @@ | ||
import { type PlaygroundProps } from '../components/Playground'; | ||
|
||
const api: PlaygroundProps[] = [ | ||
{ | ||
method: 'allNetworkGetAddress', | ||
description: 'Get address', | ||
presupposes: [ | ||
{ | ||
title: 'Batch Get Address', | ||
value: { | ||
bundle: [ | ||
{ | ||
network: 'btc', | ||
path: "m/44'/0'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'tbtc', | ||
path: "m/44'/1'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'ltc', | ||
path: "m/44'/2'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'bch', | ||
path: "m/44'/145'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'neurai', | ||
path: "m/44'/1900'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'doge', | ||
path: "m/44'/3'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
|
||
{ | ||
network: 'btc', | ||
chainName: 'bitcoin', | ||
path: "m/44'/0'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'btc', | ||
chainName: 'testnet', | ||
path: "m/44'/1'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'btc', | ||
chainName: 'litecoin', | ||
path: "m/44'/2'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'btc', | ||
chainName: 'bcash', | ||
path: "m/44'/145'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'btc', | ||
chainName: 'neurai', | ||
path: "m/44'/1900'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'btc', | ||
chainName: 'dogecoin', | ||
path: "m/44'/3'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
|
||
{ | ||
network: 'evm', | ||
path: "m/44'/60'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'evm', | ||
path: "m/44'/60'/0'/0/0", | ||
chainName: '20', | ||
showOnOneKey: false, | ||
}, | ||
|
||
{ | ||
network: 'algo', | ||
path: "m/44'/283'/0'/0'/0'", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'aptos', | ||
path: "m/44'/637'/0'/0'/0'", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'ada', | ||
path: "m/1852'/1815'/0'", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'cfx', | ||
path: "m/44'/503'/0'/0/0", | ||
chainName: '1029', | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'cfx', | ||
path: "m/44'/503'/0'/0/0", | ||
chainName: '1', | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'cosmos', | ||
path: "m/44'/118'/0'/0/0", | ||
prefix: 'cosmos', | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'cosmos', | ||
path: "m/44'/118'/0'/0/0", | ||
prefix: 'osmosis', | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'dynex', | ||
path: "m/44'/29538'/0'/0'/0'", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'fil', | ||
path: "m/44'/461'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'kaspa', | ||
path: "m/44'/111111'/0'/0/0", | ||
prefix: 'kaspa', | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'near', | ||
path: "m/44'/397'/0'", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'nexa', | ||
path: "m/44'/29223'/0'/0/0", | ||
prefix: 'nexa', | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'nervos', | ||
path: "m/44'/309'/0'/0/0", | ||
chainName: 'ckb', | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'dot', | ||
path: "m/44'/354'/0'/0'/0'", | ||
prefix: '0', | ||
chainName: 'polkadot', | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'xrp', | ||
path: "m/44'/144'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'sol', | ||
path: "m/44'/501'/0'/0'", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'stc', | ||
path: "m/44'/101010'/0'/0'/0'", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'sui', | ||
path: "m/44'/784'/0'/0'/0'", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'tron', | ||
path: "m/44'/195'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
title: 'Batch ADA Get Address', | ||
value: { | ||
bundle: [ | ||
{ | ||
network: 'ada', | ||
path: "m/1852'/1815'/0'", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'dynex', | ||
path: "m/44'/29538'/0'/0'/0'", | ||
showOnOneKey: false, | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
title: 'Batch Bitcoin Get Address', | ||
value: { | ||
bundle: [ | ||
{ | ||
network: 'btc', | ||
path: "m/44'/0'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'tbtc', | ||
path: "m/44'/1'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'ltc', | ||
path: "m/44'/2'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'bch', | ||
path: "m/44'/145'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'neurai', | ||
path: "m/44'/1900'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'doge', | ||
path: "m/44'/3'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
|
||
{ | ||
network: 'btc', | ||
chainName: 'bitcoin', | ||
path: "m/44'/0'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'btc', | ||
chainName: 'testnet', | ||
path: "m/44'/1'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'btc', | ||
chainName: 'litecoin', | ||
path: "m/44'/2'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'btc', | ||
chainName: 'bcash', | ||
path: "m/44'/145'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'btc', | ||
chainName: 'neurai', | ||
path: "m/44'/1900'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
{ | ||
network: 'btc', | ||
chainName: 'dogecoin', | ||
path: "m/44'/3'/0'/0/0", | ||
showOnOneKey: false, | ||
}, | ||
], | ||
}, | ||
}, | ||
], | ||
}, | ||
]; | ||
|
||
export default api; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.