Skip to content

Commit

Permalink
Updating brand, hello CloverPool
Browse files Browse the repository at this point in the history
  • Loading branch information
hlsblog committed Sep 23, 2024
1 parent 97b0fee commit 076bea0
Show file tree
Hide file tree
Showing 28 changed files with 13,260 additions and 12,945 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# BTC.com Wallet
# CloverPool Wallet

BTC.com Wallet - the open-source browser extension wallet for Ordinals on bitcoin.
CloverPool Wallet - the open-source browser extension wallet for Ordinals on bitcoin.

- Website: https://ordinals.btc.com
- Website: https://ordinals.cloverpool.com

## How to build

Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var knownOptions = {
};

var supported_envs = ['dev', 'pro'];
var productName = 'BTC.com';
var productName = 'CloverPool';
var version = packageConfig.version;
var validVersion = version.split('-beta')[0];
var options = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "btccom-extension",
"version": "1.0.1",
"version": "2.0.0",
"private": true,
"homepage": "https://github.com/btccom/wallet-extension#readme",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion public/_locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extName": {
"message": "BTC.com Wallet"
"message": "CloverPool Wallet"
},
"extDesc": {
"message": "Inscribe inscriptions, store your inscriptions and rare Satoshi in the Open Source Chrome wallet for Ordinals!"
Expand Down
Binary file modified public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion public/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta name="description" content="Web site created using create-react-app" />
<link rel="manifest" href="/manifest.json" />

<title>BTC.com Wallet</title>
<title>CloverPool Wallet</title>
</head>
<body style="background-color: rgb(239 244 249)">
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
Binary file modified public/images/logo/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/logo/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/logo/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/logo/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/logo/wallet-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions public/manifest/v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
},
"default_title": "__MSG_extName__"
},
"author": "https://ordinals.btc.com",
"author": "https://ordinals.cloverpool.com",
"background": {
"service_worker": "background.js"
},
"homepage_url": "https://ordinals.btc.com",
"homepage_url": "https://ordinals.cloverpool.com",
"permissions": [
"storage",
"unlimitedStorage",
Expand Down
2 changes: 1 addition & 1 deletion public/notification.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta name="description" content="Web site created using create-react-app" />
<link rel="manifest" href="/manifest.json" />

<title>BTC.com Wallet</title>
<title>CloverPool Wallet</title>
</head>
<body style="background-color: rgb(239 244 249)">
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
11 changes: 9 additions & 2 deletions src/common/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ export const ADDRESS_TYPES: {
hdPath: "m/84'/0'/0'/0",
order: 0
},
// {
// value: AddressType.P2SH_P2WPKH,
// label: 'P2SH-P2WPKH',
// name: 'Nested Segwit (P2SH-P2WPKH)',
// hdPath: "m/49'/0'/0'/0",
// order: 1
// },
{
value: AddressType.P2TR,
label: 'P2TR',
Expand Down Expand Up @@ -84,10 +91,10 @@ export const PORT_EVENT = {
};

export const GITHUB_URL = 'https://github.com/btccom/wallet-extension';
export const BRC20_EXPLORER_URL = 'https://ordi.btc.com';
export const BRC20_EXPLORER_URL = 'https://ordi.cloverpool.com';
export const PERMISSION_ORIGIN = '';

export const OPENAPI_URL_MAINNET = 'https://wallet.api.btc.com';
export const OPENAPI_URL_MAINNET = 'https://wallet.api.cloverpool.com';
export const OPENAPI_URL_TESTNET = 'http://10.10.10.3:8081';
export const OPENAPI_URL_TEST_TRANSACT = 'http://10.10.10.3:12347';
export const VERSION = process.env.release!;
Expand Down
2 changes: 1 addition & 1 deletion src/common/log.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const log = (message, ...args) => {
if (process.env.NODE_ENV !== 'production') {
console.log(`[BTC.com] (${new Date().toDateString()}) ${message}`, ...args);
console.log(`[CloverPool] (${new Date().toDateString()}) ${message}`, ...args);
}
};
1 change: 1 addition & 0 deletions src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export enum SP_SATS_TYPE {
}
export enum AddressType {
P2WPKH,
// P2SH_P2WPKH,
P2TR,
P2PKH
}
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/background/libs/manager/apiManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class ApiManager {
url = url || this.getHost() + route;
const headers = new Headers();
headers.append('x-PublicKey', this.store.publicKey);
headers.append('x-Client', 'BTC.com Wallet');
headers.append('x-Client', 'CloverPool Wallet');
headers.append('X-Version', VERSION);
headers.append('x-Uid', this.store.uuid);
headers.append('Content-Type', 'application/json');
Expand Down
11 changes: 11 additions & 0 deletions src/scripts/background/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@ export function publicKeyToAddress(publicKey: string, type: AddressType, network
network
});
return address || '';
// } else if (type === AddressType.P2SH_P2WPKH) {
// const data = bitcoin.payments.p2wpkh({
// pubkey: pubkey,
// network: network
// });
// const { address } = bitcoin.payments.p2sh({
// pubkey: pubkey,
// network: network,
// redeem: data
// });
// return address || '';
} else {
return '';
}
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/inPage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { inject } from './inject';
import ReadyPromise from './readyPromise';

const script = document.currentScript;
const channelName = script?.getAttribute('channel') || 'BTC.com';
const channelName = script?.getAttribute('channel') || 'CloverPool';

export interface Interceptor {
onRequest?: (data: any) => any;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/components/Input/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const AddressInput = (props: InputProps) => {
<div
className="text link pointer"
onClick={() => {
window.open(`https://ordi.btc.com/inscription/${inscription.id}`);
window.open(`https://ordi.cloverpool.com/inscription/${inscription.id}`);
}}>{`By inscription #${inscription.number}`}</div>
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/components/Logo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function Logo(props: { type?: 'large' | 'small' }) {
return (
<div className="flex-row-center gap-md">
<Image src="./images/logo/wallet-logo.png" preview={false} width={width} />
<span className={`font-bold ${textClassName}`}>BTC.com</span>
<span className={`font-bold ${textClassName}`}>CloverPool</span>
</div>
);
}
2 changes: 1 addition & 1 deletion src/ui/pages/Home/InscriptionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const InscriptionTabItems = () => {
<div className="grid pt-sm" style={{ gridTemplateColumns: 'repeat(3,minmax(0, 1fr))' }}>
{inscriptionList.map((v) => {
v.address = address;
v.content = `${BRC20_EXPLORER_URL}/content/${v.txid}`;
v.content = `${BRC20_EXPLORER_URL}/content/${v.txid}i0`;
return (
<div className="flex-row-center" key={`${v.id}${v.number}${v.index}`}>
<InscriptionPreview
Expand Down
4 changes: 2 additions & 2 deletions src/ui/pages/Home/InvalidIntroducePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export default function InvalidIntroducePage() {
<div className="text">
Each BRC-20 token has a decimal, if the amount is out of the decimal of this BRC-20 token. and then the system
will alert it. You can view the decimal of the token through this website
<div className="text link">https://ordinals.btc.com/</div>
<div className="text link">https://ordinals.cloverpool.com/</div>
</div>
<div className="text">
<span className="font-bold">e.g.</span>you check the ordi decimal, you can view this url
https://ordinals.btc.com/en/brc20/ordi
https://ordinals.cloverpool.com/en/brc20/ordi
</div>
<div className="text font-bold font-sm">{`2. What does “unable to send 500 with 400 available and ['600', '18000'] transferrable" mean?`}</div>

Expand Down
16 changes: 8 additions & 8 deletions src/ui/pages/Home/ServicePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ const appSummary = {
{
title: 'Inscribe',
value: 'Support Ethereum payment.',
url: 'https://ordinals.btc.com/en/inscribe/brc20',
logo: ''
},
{
title: 'Market',
value: 'To sell your BRC-20.',
url: 'https://market.slothx.io/en',
url: 'https://ordinals.cloverpool.com/en/inscribe/brc20',
logo: ''
},
// {
// title: 'Market',
// value: 'To sell your BRC-20.',
// url: 'https://market.slothx.io/en',
// logo: ''
// },
{
title: 'Explorer',
value: 'View hot BRC-20 and all BRC-20 inscriptions.',
url: 'https://ordinals.btc.com/en',
url: 'https://ordinals.cloverpool.com/en',
logo: ''
}
]
Expand Down
2 changes: 1 addition & 1 deletion src/ui/pages/Notice/components/Connect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default function Connect({ params: { session } }: Props) {
</Header>
<div className="view">
<div className="flex-col">
<div className="text font-bold mt-lg align-center">Connect with BTC.com Wallet</div>
<div className="text font-bold mt-lg align-center">Connect with CloverPool Wallet</div>
<div className="text align-center">Select the account to use on this site</div>
<div className="text sub align-center">Only connect with sites you trust.</div>
<div className="flex-col mt-lg gap-xl">
Expand Down
2 changes: 1 addition & 1 deletion src/ui/pages/Transaction/Inscriptions/BRC20TickPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default function BRC20TickPage() {
disabled={!canMint}
onClick={(e) => {
if (canMint) {
window.open(`https://ordinals.btc.com/en/inscribe/brc20?ticker=${encodeURIComponent(ticker)}`);
window.open(`https://ordinals.cloverpool.com/en/inscribe/brc20?ticker=${encodeURIComponent(ticker)}`);
}
}}>
Mint
Expand Down
4 changes: 2 additions & 2 deletions src/ui/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ export const withCommas = (x: number | string = '') => {
};

export function getExplorerUrl() {
return 'https://explorer.btc.com/btc';
return 'https://explorer.cloverpool.com/btc';
}

export function getExplorerTxUrlByTxid(txid: string) {
return `https://explorer.btc.com/btc/tx/${txid}`;
return `https://explorer.cloverpool.com/btc/transaction/${txid}`;
}

export function getCurrentVersion() {
Expand Down
Loading

0 comments on commit 076bea0

Please sign in to comment.