-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update starknetkit demo for experiment (#480)
this updates the starknetkit demo to experiment with web and mobile based wallets
- Loading branch information
Showing
8 changed files
with
4,323 additions
and
5,478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./starknetkit-connectors"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { constants } from "starknet"; | ||
import { | ||
isInArgentMobileAppBrowser, | ||
ArgentMobileConnector, | ||
} from "starknetkit/argentMobile"; | ||
import { InjectedConnector } from "starknetkit/injected"; | ||
import { WebWalletConnector } from "starknetkit/webwallet"; | ||
|
||
export const availableConnectors = isInArgentMobileAppBrowser() | ||
? [ | ||
ArgentMobileConnector.init({ | ||
options: { | ||
url: typeof window !== "undefined" ? window.location.href : "", | ||
dappName: "Example dapp", | ||
chainId: constants.NetworkName.SN_SEPOLIA, | ||
}, | ||
}), | ||
] | ||
: [ | ||
new InjectedConnector({ options: { id: "argentX" } }), | ||
new InjectedConnector({ options: { id: "braavos" } }), | ||
ArgentMobileConnector.init({ | ||
options: { | ||
url: typeof window !== "undefined" ? window.location.href : "", | ||
dappName: "Example dapp", | ||
chainId: constants.NetworkName.SN_SEPOLIA, | ||
}, | ||
}), | ||
new WebWalletConnector({ url: "https://web.argent.xyz" }), | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import Demo from "../../components/demo"; | ||
|
||
# StarknetKit Integration | ||
# StarknetKit Integration (Experimental) | ||
|
||
<Demo.StarknetKit /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
{ | ||
"extends": "@starknet-react/typescript-config/react-library.json", | ||
"compilerOptions": { | ||
"noEmit": true | ||
}, | ||
"include": ["components"] | ||
"extends": "@starknet-react/typescript-config/react-library.json", | ||
"compilerOptions": { | ||
"noEmit": true, | ||
"target": "es2020", | ||
"lib": ["dom", "dom.iterable", "esnext"], | ||
"allowJs": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"esModuleInterop": true, | ||
"module": "esnext", | ||
"moduleResolution": "bundler", | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"jsx": "preserve", | ||
"incremental": true | ||
}, | ||
"include": ["components"] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.