Skip to content

Commit 65f399a

Browse files
authored
feature(ops): rename to ord-connect (#81)
* feature(ops): rename to ord-connect * feature(ops): rename to ord-connect
1 parent d0da7e1 commit 65f399a

Some content is hidden

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

47 files changed

+148
-150
lines changed

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ jobs:
4141
npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN
4242
npm run publish
4343
env:
44-
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
44+
NPM_AUTH_TOKEN: ${{ secrets.ORDZAAR_NPM_BOT }}

.gitignore

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
node_modules
2-
packages/sado-connect/node_modules
3-
packages/sado-connect/dist
2+
packages/ord-connect/node_modules
3+
packages/ord-connect/dist
44

55
# misc
66
.DS_Store
@@ -11,4 +11,4 @@ packages/sado-connect/dist
1111
# VSCode
1212
.vscode/*
1313

14-
.turbo
14+
.turbo

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# sado-connect
1+
# ord-connect
22

33
<img src="preview.png" alt="Preview" width="605" height="350"/>
44

55
## Introduction
66

7-
**sado-connect** is a React component library that allows you to easily integrate Bitcoin Ordinals & Inscriptions via [Sado Protocol Connections](https://sado.space) with your decentralized application (dApp). We currently support [Unisat](https://unisat.io) and [Xverse](https://www.xverse.app). We stand as the pioneering walletkit to support ordinal-aware transactions, ensuring you never inadvertently spend a rare ordinal!
7+
**ord-connect** is a React component library that allows you to easily integrate Bitcoin Ordinals & Inscriptions via [Sado Protocol Connections](https://sado.space) with your decentralized application (dApp). We currently support [Unisat](https://unisat.io) and [Xverse](https://www.xverse.app). We stand as the pioneering walletkit to support ordinal-aware transactions, ensuring you never inadvertently spend a rare ordinal!
88

99
## Wallet Feature Support
1010

@@ -20,19 +20,19 @@ Just two simple steps:
2020
1. Add dependency:
2121

2222
```bash
23-
pnpm install @sadoprotocol/sado-connect
23+
pnpm install @ordzaar/ord-connect
2424
```
2525

26-
2. Import sado-connect into your dApp:
26+
2. Import ord-connect into your dApp:
2727

2828
```javascript
29-
import { SadoConnectProvider, SadoConnectKit } from "@sadoprotocol/sado-connect";
29+
import { OrdConnectProvider, OrdConnectKit } from "@ordzaar/ord-connect";
3030
3131
export default function YourReactComponent() {
3232
return (
33-
<SadoConnectProvider initialNetwork={"testnet"} initialSafeMode={true}>
34-
<SadoConnectKit />
35-
</SadoConnectProvider>
33+
<OrdConnectProvider initialNetwork={"testnet"} initialSafeMode={true}>
34+
<OrdConnectKit />
35+
</OrdConnectProvider>
3636
);
3737
}
3838
```
@@ -51,15 +51,15 @@ npm install -g pnpm
5151
5252
### Development
5353
54-
To develop sado-connect, navigate to the sado-connect directory, install the necessary packages and serve the project:
54+
To develop ord-connect, navigate to the ord-connect directory, install the necessary packages and serve the project:
5555
5656
```bash
57-
cd packages/sado-connect
57+
cd packages/ord-connect
5858
pnpm install
5959
pnpm dev
6060
```
6161
62-
The sample playground component is located at `packages/sado-connect/src/main.tsx`.
62+
The sample playground component is located at `packages/ord-connect/src/main.tsx`.
6363
6464
Changes made to the code will be reflected immediately.
6565
@@ -70,7 +70,7 @@ For inter-repo local testing:
7070
1. Link the global package to the local project:
7171
7272
```bash
73-
pnpm link packages/sado-connect --global
73+
pnpm link packages/ord-connect --global
7474
```
7575
7676
2. `cd` to any repo of your choosing (e.g., ordzaar).

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "@sadoprotocol/sado-connect-monorepo",
2+
"name": "@ordzaar/ord-connect",
33
"version": "0.0.0",
44
"private": true,
5-
"repository": "https://github.com/sadoprotocol/sado-connect",
6-
"bugs": "https://github.com/sadoprotocol/sado-connect/issues",
5+
"repository": "https://github.com/ordzaar/ord-connect",
6+
"bugs": "https://github.com/ordzaar/ord-connect/issues",
77
"license": "MIT",
88
"scripts": {
99
"prepare": "husky install",
@@ -16,7 +16,7 @@
1616
"devDependencies": {
1717
"@stickyjs/prettier": "^1.3.3",
1818
"@stickyjs/turbo": "^1.3.3",
19-
"@waveshq/standard-web-linter": "^2.6.0",
19+
"@waveshq/standard-web-linter": "^2.6.1",
2020
"husky": "^8.0.3"
2121
},
2222
"lint-staged": {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/sado-connect/index.html packages/ord-connect/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/images/sado_icon.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Sado connect</title>
7+
<title>Ord connect</title>
88
</head>
99
<body>
1010
<div id="root"></div>

packages/sado-connect/package.json packages/ord-connect/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
2-
"name": "@sadoprotocol/sado-connect",
2+
"name": "@ordzaar/ord-connect",
33
"version": "0.0.0",
44
"description": "React component library for Bitcoin Ordinals and Sado Protocol Connections",
5-
"repository": "https://github.com/sadoprotocol/sado-connect",
6-
"bugs": "https://github.com/sadoprotocol/sado-connect/issues",
5+
"repository": "https://github.com/ordzaar/ord-connect",
6+
"bugs": "https://github.com/ordzaar/ord-connect/issues",
77
"license": "MIT",
88
"type": "module",
99
"files": [
1010
"dist/*",
1111
"index.d.ts"
1212
],
1313
"types": "./index.d.ts",
14-
"main": "./dist/sado-connect.umd.cjs",
15-
"module": "./dist/sado-connect.js",
14+
"main": "./dist/ord-connect.umd.cjs",
15+
"module": "./dist/ord-connect.js",
1616
"exports": {
1717
".": {
18-
"import": "./dist/sado-connect.js",
19-
"require": "./dist/sado-connect.umd.cjs"
18+
"import": "./dist/ord-connect.js",
19+
"require": "./dist/ord-connect.umd.cjs"
2020
},
2121
"./dist/style.css": {
2222
"import": "./dist/style.css",

packages/sado-connect/src/components/SadoConnectKit.tsx packages/ord-connect/src/components/OrdConnectKit.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
import "./style.css";
2-
import { useSadoContext } from "../providers/SadoContext";
2+
import { useOrdContext } from "../providers/OrdContext.tsx";
33
import { PreConnectButton } from "./PreConnectButton";
44
import { PostConnectButton } from "./PostConnectButton";
55
import { SelectWalletModal } from "./SelectWalletModal";
66

7-
export interface SadoConnectKitProp {
7+
export interface OrdConnectKitProp {
88
customStyle?: string;
99
onViewWallet?: () => void;
1010
}
1111

1212
/**
13-
* Parent React component for SadoConnectKit, in the form of a button.
13+
* Parent React component for OrdConnectKit, in the form of a button.
1414
*
1515
* @component
16-
* @param {Object} props - Props for the SadoConnectKit component.
16+
* @param {Object} props - Props for the OrdConnectKit component.
1717
* @param {string} [props.customStyle] - Custom CSS style for the button.
1818
* @param {Function} [props.onViewWallet] - Callback function to handle viewing wallet.
19-
* @returns {JSX.Element} SadoConnectKit React component.
19+
* @returns {JSX.Element} OrdConnectKit React component.
2020
*/
21-
export function SadoConnectKit({
21+
export function OrdConnectKit({
2222
customStyle,
2323
onViewWallet,
24-
}: SadoConnectKitProp) {
24+
}: OrdConnectKitProp) {
2525
const { address, network, isModalOpen, openModal, closeModal } =
26-
useSadoContext();
26+
useOrdContext();
2727

2828
return (
2929
<>

packages/sado-connect/src/components/PostConnectButton/index.tsx packages/ord-connect/src/components/PostConnectButton/index.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Fragment } from "react";
44
import ChevronDownIcon from "../../assets/chevron-down.svg";
55
import { TruncateMiddle } from "../../utils/text-helper";
66
import LogoutIcon from "../../assets/logout.svg";
7-
import { Wallet, useSadoContext } from "../../providers/SadoContext";
7+
import { Wallet, useOrdContext } from "../../providers/OrdContext.tsx";
88
import UnisatWalletIcon from "../../assets/unisat-wallet.svg";
99
import XverseWalletIcon from "../../assets/xverse-wallet.svg";
1010

@@ -19,16 +19,16 @@ export function PostConnectButton({
1919
network,
2020
onViewWallet,
2121
}: PostConnectButtonProp) {
22-
const { disconnectWallet, wallet } = useSadoContext();
22+
const { disconnectWallet, wallet } = useOrdContext();
2323

2424
return (
2525
<Menu
2626
as="section"
27-
className="sado-wallet-connected-container relative inline-block text-left"
27+
className="ord-wallet-connected-container relative inline-block text-left"
2828
>
2929
{({ open }) => (
3030
<>
31-
<Menu.Button className="sado-wallet-connected-button">
31+
<Menu.Button className="ord-wallet-connected-button">
3232
<div className="wallet-identifier-container">
3333
<Avatar
3434
size={28}
@@ -58,7 +58,7 @@ export function PostConnectButton({
5858
className={`dropdown-button ${
5959
open ? "close-dropdown-button" : "expand-dropdown-button"
6060
}`}
61-
alt="sado connect dropdown"
61+
alt="ord connect dropdown"
6262
/>
6363
</Menu.Button>
6464

@@ -71,7 +71,7 @@ export function PostConnectButton({
7171
leaveFrom="transform opacity-100 scale-100"
7272
leaveTo="transform opacity-0 scale-95"
7373
>
74-
<Menu.Items className="sado-wallet-connection-dropdown">
74+
<Menu.Items className="ord-wallet-connection-dropdown">
7575
<Menu.Item
7676
as="button"
7777
className="dropdown-button"

0 commit comments

Comments
 (0)