Skip to content

Commit a0c8a36

Browse files
committed
pages
1 parent 420c13e commit a0c8a36

File tree

234 files changed

+44857
-2
lines changed

Some content is hidden

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

234 files changed

+44857
-2
lines changed

.babelrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-react"
5+
],
6+
"plugins": [
7+
"@babel/plugin-proposal-class-properties",
8+
["@babel/plugin-transform-runtime",
9+
{
10+
"regenerator": true
11+
}
12+
]
13+
]
14+
}

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
/dist
8+
.idea
9+
10+
# testing
11+
/coverage
12+
13+
# production
14+
/build
15+
16+
# misc
17+
.DS_Store
18+
.env.local
19+
.env.development.local
20+
.env.test.local
21+
.env.production.local
22+
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
.eslintcache
28+
29+
config.js

README.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
1-
# mina-wallet-chrome-extension
2-
Mina chrome extension wallet
1+
# MinaWallet-extension
2+
3+
Mina Protocol browser extension wallet.
4+
5+
### Introduction
6+
7+
MinaWallet provide one-stop management for mina assets, convenient staking, and the private key is self-owned.
8+
9+
10+
MinaWallet is aiming to provide a more convenient entrance of the mina network.
11+
12+
- Friendly UI.
13+
- Secure local accounts storage.
14+
- Intuitive Assets management.
15+
- Simplified staking.
16+
- Available for Chrome.
17+
18+
### Building
19+
20+
## Dev
21+
MinaWallet extension repo uses git-secret to encrypt the endpoints and the api keys. So, you can't build this without creating your own config file. You should create your own `config.js` file in the folder. Refer to the `config.example.js` sample file to create your own configuration.
22+
```sh
23+
npm run dev
24+
```
25+
Extension's build output is placed in `/dist`, and you can check out [this page](https://developer.chrome.com/extensions/getstarted) for installing the developing extension.
26+
## LICENSE
27+
28+
[MIT](LICENSE)

config.example.js

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
2+
export const cointypes = {
3+
name: 'MINA',
4+
segwitAvailable: true,
5+
coinType: 12586,
6+
network: null,
7+
symbol:'MINA',
8+
decimals:9
9+
}
10+
/**
11+
* 锁定时间,默认10分钟
12+
*/
13+
export const LOCK_TIME = 120 * 60 * 1000
14+
15+
/**
16+
* 系统版本
17+
*/
18+
export const VERSION_CONFIG = ""
19+
20+
/**
21+
* 默认的请求接口
22+
*/
23+
export const GQL_URL = ""
24+
25+
26+
/**
27+
* fee等配置信息接口
28+
*/
29+
export const BASE_INFO_URL = ""
30+
31+
/**
32+
* 默认的浏览器接口
33+
*/
34+
export const EXPLORER_URL = ""
35+
36+
37+
/**
38+
* 交易记录接口
39+
*/
40+
export const TRANSACTION_URL = ""
41+
/**
42+
* 默认的语言选项
43+
*/
44+
export const DEFAULT_LANGUAGE = ""
45+
46+
/**
47+
* 首页默认的请求条数
48+
*/
49+
export const TX_LIST_LENGTH = 20
50+
51+
export const network_config=[
52+
{
53+
id: 1,
54+
name: "Mainnet",
55+
url:GQL_URL,
56+
explorer:EXPLORER_URL
57+
},
58+
]
59+

0 commit comments

Comments
 (0)