Skip to content

Commit

Permalink
Merge pull request #34 from fanr-cc/master
Browse files Browse the repository at this point in the history
v1.1版本
  • Loading branch information
andyYuanFZM committed Nov 28, 2019
2 parents 7ffb663 + f622736 commit 06889ec
Show file tree
Hide file tree
Showing 39 changed files with 1,170 additions and 169 deletions.
46 changes: 8 additions & 38 deletions BTY Wallet/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ chrome.runtime.onMessage.addListener(({action = '', payload}, sender) => {
break;
case 'sign-group-tx':
if (isWalletUnlock()) {
console.log('==交易组签名了==')
txType = 'sign-group-tx'
payload.actionID = action
txObj = payload;
Expand Down Expand Up @@ -181,11 +182,7 @@ chrome.runtime.onMessage.addListener(({action = '', payload}, sender) => {
txType = 'bty-main-parallel'
payload.actionID = action
txObj = payload;
// console.log(payload)
createNewWindow('outExtensionPage', payload)
// setTimeout(() => {
// isGetVoteHash()
// }, 0);
} else {
sendMessage({
action: 'answer-bty-main-parallel',
Expand All @@ -201,11 +198,7 @@ chrome.runtime.onMessage.addListener(({action = '', payload}, sender) => {
txType = 'bty-parallel-main'
payload.actionID = action
txObj = payload;
// console.log(payload)
createNewWindow('outExtensionPage', payload)
// setTimeout(() => {
// isGetVoteHash()
// }, 0);
} else {
sendMessage({
action: 'answer-bty-parallel-main',
Expand All @@ -221,11 +214,7 @@ chrome.runtime.onMessage.addListener(({action = '', payload}, sender) => {
txType = 'ccny-main-parallel'
payload.actionID = action
txObj = payload;
// console.log(payload)
createNewWindow('outExtensionPage', payload)
// setTimeout(() => {
// isGetVoteHash()
// }, 0);
} else {
sendMessage({
action: 'answer-ccny-main-parallel',
Expand All @@ -241,11 +230,7 @@ chrome.runtime.onMessage.addListener(({action = '', payload}, sender) => {
txType = 'ccny-parallel-main'
payload.actionID = action
txObj = payload;
// console.log(payload)
createNewWindow('outExtensionPage', payload)
// setTimeout(() => {
// isGetVoteHash()
// }, 0);
} else {
sendMessage({
action: 'answer-ccny-parallel-main',
Expand All @@ -268,14 +253,11 @@ chrome.runtime.onMessage.addListener(({action = '', payload}, sender) => {
})
break;
case 'reply-background-sign-group-tx':
// console.log('reply-background-sign-tx')
// console.log(payload)
console.log('reply-background-sign-tx')
console.log(payload)
sendMessage({
action: 'answer-sign-group-tx',
payload:{
error:null,
result:payload.hash
}
payload
})
break;
case 'reply-background-send-tx':
Expand Down Expand Up @@ -317,37 +299,25 @@ chrome.runtime.onMessage.addListener(({action = '', payload}, sender) => {
console.log(payload)
sendMessage({
action: 'answer-bty-main-parallel',
payload:{
error:null,
result:payload.hash
}
payload
})
break
case 'reply-background-bty-parallel-main':
sendMessage({
action: 'answer-bty-parallel-main',
payload:{
error:null,
result:payload.hash
}
payload
})
break
case 'reply-background-ccny-main-parallel':
sendMessage({
action: 'answer-ccny-main-parallel',
payload:{
error:null,
result:payload.hash
}
payload
})
break
case 'reply-background-ccny-parallel-main':
sendMessage({
action: 'answer-ccny-parallel-main',
payload:{
error:null,
result:payload.hash
}
payload
})
break
case 'unlock-wallet':
Expand Down
11 changes: 10 additions & 1 deletion BTY Wallet/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,14 @@
]
},
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
"manifest_version": 2
"manifest_version": 2,
"commands": {
"_execute_browser_action": {
"suggested_key": {
"default": "Ctrl+Shift+Z",
"mac": "MacCtrl+Shift+Z"
},
"description": "比特元浏览器插件"
}
}
}
Binary file modified app/public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/public/logos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 06889ec

Please sign in to comment.