Skip to content

Commit

Permalink
Bitcoin addresses (flexpool#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSSD7 authored Aug 14, 2023
2 parents 517f99b + 07b0321 commit 016a4f5
Show file tree
Hide file tree
Showing 99 changed files with 1,401 additions and 430 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@types/react-google-recaptcha": "2.1.0",
"@types/react-pdf": "5.0.2",
"ansi-regex": "5.0.1",
"bitcoin-address-validation": "^2.2.1",
"copy-to-clipboard": "3.3.1",
"d3-geo": "^3.0.1",
"date-fns": "^2.19.0",
Expand Down
6 changes: 5 additions & 1 deletion pages/miner/[coin]/[address].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ export const MinerDashboardPageContent: React.FC<{
address: string;
status: AddressStatus;
}> = (props) => {
const { coinTicker, address } = props;
const { coinTicker, address: addressURIComponent } = props;

// Need to handle btc address prefix. So we need to decode URI
const address = decodeURIComponent(addressURIComponent);

const { data: poolCoins } = usePoolCoinsQuery();
const queryClient = useQueryClient();
const activeCoin = useActiveCoin(coinTicker);
Expand Down
6 changes: 4 additions & 2 deletions public/unused-locales/ar/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
6 changes: 4 additions & 2 deletions public/unused-locales/de/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
6 changes: 4 additions & 2 deletions public/unused-locales/dg/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
6 changes: 4 additions & 2 deletions public/unused-locales/el/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
6 changes: 4 additions & 2 deletions public/unused-locales/es-ES/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
6 changes: 4 additions & 2 deletions public/unused-locales/fa/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
6 changes: 4 additions & 2 deletions public/unused-locales/fi/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
6 changes: 4 additions & 2 deletions public/unused-locales/hu/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
6 changes: 4 additions & 2 deletions public/unused-locales/it/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
6 changes: 4 additions & 2 deletions public/unused-locales/ja/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
6 changes: 4 additions & 2 deletions public/unused-locales/ko/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
6 changes: 4 additions & 2 deletions public/unused-locales/lt/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
6 changes: 4 additions & 2 deletions public/unused-locales/pl/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
6 changes: 4 additions & 2 deletions public/unused-locales/pt-PT/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
6 changes: 4 additions & 2 deletions public/unused-locales/sl/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
6 changes: 4 additions & 2 deletions public/unused-locales/tr/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
6 changes: 4 additions & 2 deletions public/unused-locales/vi/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
6 changes: 4 additions & 2 deletions public/unused-locales/zh-TW/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
"download": "Download CSV",
"table_contents": {
"pending": "Pending",
"success": "Success"
"success": "Success",
"not_executed": "Not Executed"
},
"table_head": {
"date": "Date",
"date_executed": "Date Executed",
"value": "Transaction Value",
"fee": "Fee",
"duration": "Duration",
Expand Down Expand Up @@ -202,4 +204,4 @@
"status_pending_tooltip": "Awaiting transaction confirmation",
"confirmation_duration_tooltip": "Confirmed in",
"confirmed_at_tooltip": "Confirmed at"
}
}
Loading

0 comments on commit 016a4f5

Please sign in to comment.