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

chore: set under starknet-io org #253

Merged
merged 3 commits into from
Jun 26, 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
Expand Up @@ -3,7 +3,7 @@
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [["get-starknet-core", "get-starknet"]],
"linked": [["@starknet-io/get-starknet-core", "@starknet-io/get-starknet"]],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- name: Setup npmrc
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_ACCESS_TOKEN }}" >> .npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_ACCESS_TOKEN_DEVELOP }}" >> .npmrc

- name: install dependencies
run: pnpm install
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"get-starknet": "workspace:^4.0.0-next.0",
"@starknet-io/get-starknet": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
type DisconnectOptions,
connect,
disconnect,
} from "get-starknet"
} from "@starknet-io/get-starknet"
import { useState } from "react"

function App() {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "get-starknet-monorepo",
"version": "2.0.0",
"name": "@starknet-io/get-starknet-monorepo",
"version": "4.0.0",
"private": true,
"scripts": {
"build": "pnpm run -r build",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# get-starknet-core
# @starknet-io/get-starknet-core

## 4.0.0-next.5

Expand Down
2 changes: 1 addition & 1 deletion packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import {
getDiscoveryWallets,
getLastConnectedWallet,
getPreAuthorizedWallets,
} from "get-starknet-core"
} from "@starknet-io/get-starknet-core"

interface GetStarknetResult {
// Returns all wallets available in the window object
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "get-starknet-core",
"name": "@starknet-io/get-starknet-core",
"version": "4.0.0",
"keywords": [
"starknet",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# get-starknet
# @starknet-io/get-starknet

## 4.0.0-next.2

Expand Down
12 changes: 6 additions & 6 deletions packages/ui/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# get-starknet

[![npm](https://img.shields.io/npm/v/get-starknet.svg)](https://www.npmjs.com/package/get-starknet)
[![npm](https://img.shields.io/npm/v/get-starknet.svg)](https://www.npmjs.com/package/@starknet-io/get-starknet)

## Goals

Expand All @@ -14,13 +14,13 @@

```
# using npm
npm install get-starknet starknet@next
npm install @starknet-io/get-starknet starknet@next

# using yarn
yarn add get-starknet starknet@next
yarn add @starknet-io/get-starknet starknet@next

# using pnpm
pnpm add get-starknet starknet@next
pnpm add @starknet-io/get-starknet starknet@next
```

## Usage for dApp developers
Expand All @@ -29,7 +29,7 @@ You can use the built-in UI to connect to any Starknet wallet as fast as
possible like this:

```tsx
import { connect, disconnect } from "get-starknet"
import { connect, disconnect } from "@starknet-io/get-starknet"

return <button onClick={() => connect()}>Connect wallet</button>
```
Expand All @@ -49,7 +49,7 @@ import {
getDiscoveryWallets,
getLastConnectedWallet,
getPreAuthorizedWallets,
} from "get-starknet-core"
} from "@starknet-io/get-starknet-core"

interface GetStarknetResult {
// Returns all wallets available in the window object
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "get-starknet",
"name": "@starknet-io/get-starknet",
"version": "4.0.0",
"keywords": [
"starknet",
Expand Down Expand Up @@ -30,8 +30,8 @@
"dev": "vite build --watch"
},
"dependencies": {
"bowser": "^2.11.0",
"get-starknet-core": "workspace:^4.0.0"
"@starknet-io/get-starknet-core": "workspace:*",
"bowser": "^2.11.0"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^1.0.1",
Expand Down
9 changes: 6 additions & 3 deletions packages/ui/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import show, { type WalletProviderWithStoreVersion } from "./modal"
import Bowser from "bowser"
import sn, {
type DisconnectOptions,
type GetWalletOptions,
type RequestAccountsParameters,
type StarknetWindowObject,
} from "get-starknet-core"
} from "@starknet-io/get-starknet-core"
import Bowser from "bowser"

export type { StarknetWindowObject, DisconnectOptions } from "get-starknet-core"
export type {
StarknetWindowObject,
DisconnectOptions,
} from "@starknet-io/get-starknet-core"

type StoreVersion = "chrome" | "firefox" | "edge"

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/modal/Modal.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import type { WalletProviderWithStoreVersion } from "."
import type { StarknetWindowObject } from "get-starknet-core"
import type { StarknetWindowObject } from "@starknet-io/get-starknet-core"
import { onMount } from "svelte"

const ssrSafeWindow = typeof window !== "undefined" ? window : null
Expand Down
5 changes: 4 additions & 1 deletion packages/ui/src/modal/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import Modal from "./Modal.svelte"
import type { StarknetWindowObject, WalletProvider } from "get-starknet-core"
import type {
StarknetWindowObject,
WalletProvider,
} from "@starknet-io/get-starknet-core"

export interface WalletProviderWithStoreVersion
extends Omit<WalletProvider, "downloads"> {
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.