Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: release #1

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "interlay/ui" }],
"changelog": ["@changesets/changelog-github", { "repo": "bob-collective/sats-wagmi" }],
"commit": false,
"fixed": [],
"linked": [],
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@
},
"scripts": {
"dev": "storybook dev -p 6006",
"lint": "eslint packages/**/src apps/**/src --ext .ts,.tsx --config .eslintrc.json --cache",
"lint": "eslint packages/**/src --ext .ts,.tsx --config .eslintrc.json --cache",
"lint:fix": "pnpm lint --fix",
"typecheck": "turbo typecheck",
"format:check": "prettier --check packages/**/src apps/**/src --cache",
"format:write": "prettier --write packages/**/src apps/**/src --cache",
"format:check": "prettier --check packages/**/src --cache",
"format:write": "prettier --write packages/**/src --cache",
"build": "turbo run build",
"build:sb": "storybook build",
"test": "jest --verbose --config ./jest.config.js",
"start:bridge": "cd apps/bridge && pnpm run dev --port 3000",
"start:highway": "cd apps/highway && pnpm run dev --port 5000",
"start:api": "cd apps/api && pnpm run dev",
"version": "changeset version",
"release": "changeset publish",
"version:dev": "changeset version --snapshot dev2",
"release:dev": "changeset publish --snapshot --no-git-tag --tag dev2",
"test:e2e": "start-server-and-test 'pnpm start:bridge' http-get://localhost:3000 'cd apps/e2e && pnpm synpress:run'",
"test:e2e:ci": "cd apps/e2e && pnpm synpress:run",
"postinstall": "husky install",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"sideEffects": false,
"publishConfig": {
"access": "public"
"access": "private"
},
"repository": {
"type": "git",
Expand Down
10 changes: 6 additions & 4 deletions packages/sats-wagmi/src/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,17 @@ const useSatsWagmi = (): SatsConfigData => {
return context;
};

const queryClient = new QueryClient();

type SatsWagmiConfigProps = {
children: ReactNode;
network?: BitcoinNetwork;
queryClient?: QueryClient;
};

const SatsWagmiConfig: FC<SatsWagmiConfigProps> = ({ children, network = 'mainnet', queryClient: queryClientProp }) => {
const SatsWagmiConfig: FC<SatsWagmiConfigProps> = ({
children,
network = 'mainnet',
queryClient = new QueryClient()
}) => {
const [connectors, setConnectors] = useState<SatsConnector[]>([]);
const [connector, setCurrentConnector] = useState<SatsConnector>();

Expand Down Expand Up @@ -72,7 +74,7 @@ const SatsWagmiConfig: FC<SatsWagmiConfigProps> = ({ children, network = 'mainne
}, []);

return (
<QueryClientProvider client={queryClientProp || queryClient}>
<QueryClientProvider client={queryClient}>
<StatsWagmiContext.Provider value={{ connectors, connector, setConnector }}>
{children}
</StatsWagmiContext.Provider>
Expand Down
1 change: 0 additions & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
},
"dependencies": {
"@gobob/bob-sdk": "^1.1.1",
"@gobob/wagmi": "workspace:^",
"bitcoinjs-lib": "^6.1.5"
}
}
1 change: 0 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
},
"dependencies": {
"@gobob/bob-sdk": "^1.1.1",
"@gobob/wagmi": "workspace:^",
"bitcoinjs-lib": "^6.1.5"
}
}
2 changes: 1 addition & 1 deletion packages/utils/src/truncate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Address } from '@gobob/wagmi';
type Address = `0x${string}`;

const truncateBtcAddress = (address: string) => address.slice(0, 6) + '...' + address.slice(-6);

Expand Down
Loading
Loading