Skip to content

Commit

Permalink
feat: release
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsimao committed Feb 21, 2024
1 parent 61ba419 commit c615c50
Show file tree
Hide file tree
Showing 10 changed files with 259 additions and 7,155 deletions.
4 changes: 2 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"$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": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"ignore": ["@gobob/react-query"]
}
1 change: 1 addition & 0 deletions .eslintcache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/react-query/src/constants.ts":"1","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/react-query/src/index.ts":"2","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/react-query/src/prices/index.ts":"3","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/react-query/src/prices/usePrices.tsx":"4","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/connectors/base.ts":"5","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/connectors/index.ts":"6","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/connectors/leather.ts":"7","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/connectors/mm-snap.ts":"8","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/connectors/unisat.ts":"9","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/connectors/xverse.ts":"10","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/hooks/index.ts":"11","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/hooks/useAccount.tsx":"12","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/hooks/useConnect.tsx":"13","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/hooks/useDisconnect.tsx":"14","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/index.ts":"15","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/provider.tsx":"16","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/types/btc-script.ts":"17","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/types/coinselect/index.d.ts":"18","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/types/index.ts":"19","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/types/network.ts":"20","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/utils/index.ts":"21","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/utils/metamask.ts":"22","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/types/src/index.ts":"23","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/types/src/network.ts":"24","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/utils/src/address.ts":"25","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/utils/src/fee.ts":"26","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/utils/src/index.ts":"27","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/utils/src/inscription.ts":"28","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/utils/src/truncate.ts":"29","/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/utils/src/utxo.ts":"30"},{"size":81,"mtime":1707323525903,"results":"31","hashOfConfig":"32"},{"size":94,"mtime":1707228120624,"results":"33","hashOfConfig":"32"},{"size":29,"mtime":1704363227239,"results":"34","hashOfConfig":"32"},{"size":1391,"mtime":1707301547834,"results":"35","hashOfConfig":"32"},{"size":4727,"mtime":1707323525903,"results":"36","hashOfConfig":"32"},{"size":130,"mtime":1707323525903,"results":"37","hashOfConfig":"32"},{"size":3190,"mtime":1707323525903,"results":"38","hashOfConfig":"32"},{"size":10855,"mtime":1707323525903,"results":"39","hashOfConfig":"32"},{"size":4071,"mtime":1707323525904,"results":"40","hashOfConfig":"32"},{"size":4304,"mtime":1707323525904,"results":"41","hashOfConfig":"32"},{"size":93,"mtime":1707227745516,"results":"42","hashOfConfig":"32"},{"size":587,"mtime":1707304762751,"results":"43","hashOfConfig":"32"},{"size":923,"mtime":1707323525904,"results":"44","hashOfConfig":"32"},{"size":458,"mtime":1707323525904,"results":"45","hashOfConfig":"32"},{"size":115,"mtime":1707323525904,"results":"46","hashOfConfig":"32"},{"size":2194,"mtime":1708507065779,"results":"47","hashOfConfig":"32"},{"size":104,"mtime":1707323525904,"results":"48","hashOfConfig":"32"},{"size":922,"mtime":1707323525905,"results":"49","hashOfConfig":"32"},{"size":57,"mtime":1707323525905,"results":"50","hashOfConfig":"32"},{"size":109,"mtime":1707323525905,"results":"51","hashOfConfig":"32"},{"size":28,"mtime":1707323525905,"results":"52","hashOfConfig":"32"},{"size":3381,"mtime":1707323525905,"results":"53","hashOfConfig":"32"},{"size":27,"mtime":1707323525905,"results":"54","hashOfConfig":"32"},{"size":90,"mtime":1707323525905,"results":"55","hashOfConfig":"32"},{"size":957,"mtime":1707323525906,"results":"56","hashOfConfig":"32"},{"size":368,"mtime":1707323525906,"results":"57","hashOfConfig":"32"},{"size":133,"mtime":1707323525906,"results":"58","hashOfConfig":"32"},{"size":3617,"mtime":1707323525906,"results":"59","hashOfConfig":"32"},{"size":652,"mtime":1707323525906,"results":"60","hashOfConfig":"32"},{"size":2156,"mtime":1707323525906,"results":"61","hashOfConfig":"32"},{"filePath":"62","messages":"63","suppressedMessages":"64","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"g4pz0g",{"filePath":"65","messages":"66","suppressedMessages":"67","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"68","messages":"69","suppressedMessages":"70","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"71","messages":"72","suppressedMessages":"73","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"74","messages":"75","suppressedMessages":"76","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"77","messages":"78","suppressedMessages":"79","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"80","messages":"81","suppressedMessages":"82","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"83","messages":"84","suppressedMessages":"85","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"86","messages":"87","suppressedMessages":"88","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"89","messages":"90","suppressedMessages":"91","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"92","messages":"93","suppressedMessages":"94","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"95","messages":"96","suppressedMessages":"97","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"98","messages":"99","suppressedMessages":"100","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"101","messages":"102","suppressedMessages":"103","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"104","messages":"105","suppressedMessages":"106","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"107","messages":"108","suppressedMessages":"109","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"110","messages":"111","suppressedMessages":"112","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"113","messages":"114","suppressedMessages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","suppressedMessages":"118","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"119","messages":"120","suppressedMessages":"121","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"122","messages":"123","suppressedMessages":"124","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"125","messages":"126","suppressedMessages":"127","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","suppressedMessages":"130","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"131","messages":"132","suppressedMessages":"133","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","suppressedMessages":"136","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"137","messages":"138","suppressedMessages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","suppressedMessages":"142","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"143","messages":"144","suppressedMessages":"145","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"146","messages":"147","suppressedMessages":"148","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"149","messages":"150","suppressedMessages":"151","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/react-query/src/constants.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/react-query/src/index.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/react-query/src/prices/index.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/react-query/src/prices/usePrices.tsx",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/connectors/base.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/connectors/index.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/connectors/leather.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/connectors/mm-snap.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/connectors/unisat.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/connectors/xverse.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/hooks/index.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/hooks/useAccount.tsx",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/hooks/useConnect.tsx",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/hooks/useDisconnect.tsx",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/index.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/provider.tsx",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/types/btc-script.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/types/coinselect/index.d.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/types/index.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/types/network.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/utils/index.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/sats-wagmi/src/utils/metamask.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/types/src/index.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/types/src/network.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/utils/src/address.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/utils/src/fee.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/utils/src/index.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/utils/src/inscription.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/utils/src/truncate.ts",[],[],"/Users/simao/Documents/repos/interlay/temp-sats-wagmi/packages/utils/src/utxo.ts",[],[]]
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
},
"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",
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

0 comments on commit c615c50

Please sign in to comment.