-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
1,511 additions
and
105 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@thirdweb-dev/sdk": patch | ||
--- | ||
|
||
ZkSync Sepolia addresses |
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,5 @@ | ||
--- | ||
"@thirdweb-dev/react-native": patch | ||
--- | ||
|
||
Reports only react-nativec |
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,17 @@ | ||
--- | ||
"@thirdweb-dev/react": patch | ||
--- | ||
|
||
Add prop `switchNetworkBtnTitle` to `ConnectWallet` and `Web3Button` components to allow changing the "Switch Network" label on the button which is displayed when user needs to switch the network in the connected wallet. | ||
|
||
```tsx | ||
<ConnectWallet switchNetworkBtnTitle="Switch Chain" /> | ||
``` | ||
|
||
```tsx | ||
<Web3Button | ||
switchNetworkBtnTitle="Switch Chain" | ||
contractAddress="0x..." | ||
action={someAction} | ||
/> | ||
``` |
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,5 @@ | ||
--- | ||
"@thirdweb-dev/chains": patch | ||
--- | ||
|
||
synced chains package with chains db |
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,33 @@ | ||
--- | ||
"@thirdweb-dev/react": patch | ||
--- | ||
|
||
add `useSetWalletModalConfig` hook to customize the ConnectWallet Modal to programmatically open the modal without using the `ConnectWallet` component along with `useSetIsWalletModalOpen` | ||
|
||
```tsx | ||
import { | ||
useSetWalletModalConfig, | ||
useSetIsWalletModalOpen, | ||
} from "@thirdweb-dev/react"; | ||
|
||
function Example() { | ||
const setWalletModalConfig = useSetWalletModalConfig(); | ||
const setIsWalletModalOpen = useSetIsWalletModalOpen(); | ||
|
||
return ( | ||
<button | ||
onClick={() => { | ||
// customize the modal | ||
setWalletModalConfig({ | ||
modalSize: "wide", | ||
theme: "light", | ||
}); | ||
// open the modal | ||
setIsWalletModalOpen(true); | ||
}} | ||
> | ||
open connect modal | ||
</button> | ||
); | ||
} | ||
``` |
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,24 @@ | ||
--- | ||
"@thirdweb-dev/react-native": patch | ||
--- | ||
|
||
Exports standalone ConnectEmbed UI | ||
|
||
Devs can now show the Connect modal UI directly into their apps. | ||
This component will render the wallets defined in our ThirdwebProvider. | ||
|
||
```tsx | ||
<ConnectEmbed | ||
modalTitleIconUrl="<my-icon-url>" | ||
modalTitle="Sign In" | ||
theme={"light"} | ||
onConnect={() => { | ||
console.log("wallet connected"); | ||
}} | ||
container={{ | ||
paddingVertical: "md", | ||
marginHorizontal: "md", | ||
borderRadius: "md", | ||
}} | ||
/> | ||
``` |
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,65 @@ | ||
# On the Version Packages branch | ||
# Generate and Commit the Typedoc JSON files and the Snippets JSON files | ||
|
||
name: Commit Release Artifacts | ||
|
||
on: | ||
push: | ||
branches: | ||
- changeset-release/main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
release-artifacts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v3 | ||
|
||
# bun setup is required, because pnpm typdoc will run pnpm build and some packages uses bun for build | ||
- name: Setup bun | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: 1.0.21 | ||
|
||
- name: Install | ||
uses: ./.github/composite-actions/install | ||
|
||
- name: Build | ||
run: pnpm build | ||
|
||
- name: Typedoc | ||
run: pnpm typedoc | ||
|
||
- name: Generate Docs | ||
run: | | ||
cd packages/sdk | ||
pnpm generate-docs | ||
cd ../react-core | ||
pnpm generate-docs | ||
cd ../react | ||
pnpm generate-docs | ||
cd ../.. | ||
- name: Generate Snippets | ||
run: pnpm generate-snippets | ||
|
||
- name: Commit changes | ||
run: | | ||
git config --local user.email "action@github.com" | ||
git config --local user.name "GitHub Action" | ||
git status | ||
git add packages/react/typedoc/documentation.json | ||
git add packages/react-core/typedoc/documentation.json | ||
git add packages/sdk/typedoc/documentation.json | ||
git add packages/storage/typedoc/documentation.json | ||
git add packages/wallets/typedoc/documentation.json | ||
git add snippets/feature_snippets_react.json | ||
git add snippets/feature_snippets_sdk.json | ||
git add snippets/snippets.json | ||
git commit -m "Commit Release Artifacts [skip ci]" | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
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,37 @@ | ||
import type { Chain } from "../src/types"; | ||
export default { | ||
"chain": "Jumbo", | ||
"chainId": 129, | ||
"explorers": [ | ||
{ | ||
"name": "ProtoJumbo", | ||
"url": "https://protojumbo.jumbochain.org", | ||
"standard": "EIP3091" | ||
} | ||
], | ||
"faucets": [ | ||
"https://protojumbo.jumbochain.org/faucet-smart" | ||
], | ||
"features": [ | ||
{ | ||
"name": "EIP155" | ||
} | ||
], | ||
"infoURL": "https://jumbochain.org", | ||
"name": "ProtoJumbo Testnet", | ||
"nativeCurrency": { | ||
"name": "JNFTC", | ||
"symbol": "JNFTC", | ||
"decimals": 18 | ||
}, | ||
"networkId": 129, | ||
"rpc": [ | ||
"https://protojumbo-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", | ||
"https://129.rpc.thirdweb.com/${THIRDWEB_API_KEY}", | ||
"https://testnode.jumbochain.org" | ||
], | ||
"shortName": "ProtoJumbo", | ||
"slip44": 1, | ||
"slug": "protojumbo-testnet", | ||
"testnet": true | ||
} as const satisfies Chain; |
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,31 @@ | ||
import type { Chain } from "../src/types"; | ||
export default { | ||
"chain": "Avalanche", | ||
"chainId": 18303, | ||
"explorers": [], | ||
"faucets": [], | ||
"features": [], | ||
"icon": { | ||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg", | ||
"width": 256, | ||
"height": 256, | ||
"format": "svg" | ||
}, | ||
"infoURL": "https://avacloud.io", | ||
"name": "Zeroone Testnet", | ||
"nativeCurrency": { | ||
"name": "Zeroone Testnet Token", | ||
"symbol": "ZERO", | ||
"decimals": 18 | ||
}, | ||
"networkId": 18303, | ||
"redFlags": [], | ||
"rpc": [ | ||
"https://zeroone-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", | ||
"https://18303.rpc.thirdweb.com/${THIRDWEB_API_KEY}", | ||
"https://subnets.avax.network/zeroonetes/testnet/rpc" | ||
], | ||
"shortName": "Zeroone Testnet", | ||
"slug": "zeroone-testnet", | ||
"testnet": true | ||
} as const satisfies Chain; |
Oops, something went wrong.