Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Commit d791f6a

Browse files
committed
make sdk a peer-dep, update wagmi
1 parent 945f587 commit d791f6a

5 files changed

Lines changed: 69 additions & 81 deletions

File tree

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
},
2626
"sideEffects:": false,
2727
"devDependencies": {
28+
"@thirdweb-dev/sdk": "^2.0.0-nightly.22",
2829
"@types/react": "^17.0.39",
2930
"@typescript-eslint/eslint-plugin": "^5.2.0",
3031
"@typescript-eslint/parser": "^5.2.0",
@@ -44,13 +45,13 @@
4445
"typescript": "^4.5.5"
4546
},
4647
"dependencies": {
47-
"@thirdweb-dev/sdk": "^2.0.0-nightly.19",
4848
"tiny-invariant": "^1.2.0",
4949
"wagmi": "^0.2.12"
5050
},
5151
"peerDependencies": {
52+
"@thirdweb-dev/sdk": "^2",
5253
"ethers": "^5.5.1",
53-
"react": "^17.0.0"
54+
"react": "^17"
5455
},
5556
"tsup": {
5657
"entry": [

wiki/DAppMetaData.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#### Defined in
2020

21-
[src/Provider.tsx:48](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L48)
21+
[src/Provider.tsx:48](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L48)
2222

2323
___
2424

@@ -28,7 +28,7 @@ ___
2828

2929
#### Defined in
3030

31-
[src/Provider.tsx:51](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L51)
31+
[src/Provider.tsx:51](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L51)
3232

3333
___
3434

@@ -38,7 +38,7 @@ ___
3838

3939
#### Defined in
4040

41-
[src/Provider.tsx:49](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L49)
41+
[src/Provider.tsx:49](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L49)
4242

4343
___
4444

@@ -48,7 +48,7 @@ ___
4848

4949
#### Defined in
5050

51-
[src/Provider.tsx:47](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L47)
51+
[src/Provider.tsx:47](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L47)
5252

5353
___
5454

@@ -58,4 +58,4 @@ ___
5858

5959
#### Defined in
6060

61-
[src/Provider.tsx:50](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L50)
61+
[src/Provider.tsx:50](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L50)

wiki/Exports.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
#### Defined in
5656

57-
[src/Provider.tsx:41](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L41)
57+
[src/Provider.tsx:41](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L41)
5858

5959
___
6060

@@ -64,7 +64,7 @@ ___
6464

6565
#### Defined in
6666

67-
[src/Provider.tsx:19](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L19)
67+
[src/Provider.tsx:19](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L19)
6868

6969
___
7070

@@ -74,7 +74,7 @@ ___
7474

7575
#### Defined in
7676

77-
[src/Provider.tsx:24](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L24)
77+
[src/Provider.tsx:24](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L24)
7878

7979
___
8080

@@ -84,7 +84,7 @@ ___
8484

8585
#### Defined in
8686

87-
[src/Provider.tsx:36](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L36)
87+
[src/Provider.tsx:36](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L36)
8888

8989
___
9090

@@ -94,7 +94,7 @@ ___
9494

9595
#### Defined in
9696

97-
[src/Provider.tsx:28](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L28)
97+
[src/Provider.tsx:28](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L28)
9898

9999
## Variables
100100

@@ -104,7 +104,7 @@ ___
104104

105105
#### Defined in
106106

107-
node_modules/wagmi-core/dist/declarations/src/constants/chains.d.ts:5
107+
node_modules/wagmi-core/dist/declarations/src/constants/chains.d.ts:9
108108

109109
___
110110

@@ -114,7 +114,7 @@ ___
114114

115115
#### Defined in
116116

117-
node_modules/wagmi-core/dist/declarations/src/constants/chains.d.ts:6
117+
node_modules/wagmi-core/dist/declarations/src/constants/chains.d.ts:10
118118

119119
## Functions
120120

@@ -140,7 +140,7 @@ node_modules/wagmi-core/dist/declarations/src/constants/chains.d.ts:6
140140

141141
#### Defined in
142142

143-
[src/Provider.tsx:114](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L114)
143+
[src/Provider.tsx:114](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L114)
144144

145145
___
146146

@@ -174,7 +174,7 @@ ___
174174

175175
#### Defined in
176176

177-
[src/hooks/useAddress.ts:3](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/hooks/useAddress.ts#L3)
177+
[src/hooks/useAddress.ts:3](https://github.com/thirdweb-dev/react/blob/945f587/src/hooks/useAddress.ts#L3)
178178

179179
___
180180

@@ -190,7 +190,7 @@ readonly [{ `data`: { `connected`: `boolean` ; `connector`: `undefined` \| `Conn
190190

191191
#### Defined in
192192

193-
[src/hooks/useConnect.ts:6](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/hooks/useConnect.ts#L6)
193+
[src/hooks/useConnect.ts:6](https://github.com/thirdweb-dev/react/blob/945f587/src/hooks/useConnect.ts#L6)
194194

195195
___
196196

@@ -210,7 +210,7 @@ ___
210210

211211
#### Defined in
212212

213-
[src/hooks/useDisconnect.ts:3](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/hooks/useDisconnect.ts#L3)
213+
[src/hooks/useDisconnect.ts:3](https://github.com/thirdweb-dev/react/blob/945f587/src/hooks/useDisconnect.ts#L3)
214214

215215
___
216216

@@ -230,7 +230,7 @@ ___
230230

231231
#### Defined in
232232

233-
[src/hooks/modules/useEdition.ts:4](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/hooks/modules/useEdition.ts#L4)
233+
[src/hooks/modules/useEdition.ts:4](https://github.com/thirdweb-dev/react/blob/945f587/src/hooks/modules/useEdition.ts#L4)
234234

235235
___
236236

@@ -250,7 +250,7 @@ ___
250250

251251
#### Defined in
252252

253-
[src/hooks/modules/useEditionDrop.ts:4](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/hooks/modules/useEditionDrop.ts#L4)
253+
[src/hooks/modules/useEditionDrop.ts:4](https://github.com/thirdweb-dev/react/blob/945f587/src/hooks/modules/useEditionDrop.ts#L4)
254254

255255
___
256256

@@ -270,7 +270,7 @@ ___
270270

271271
#### Defined in
272272

273-
[src/hooks/modules/useMarketplace.ts:4](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/hooks/modules/useMarketplace.ts#L4)
273+
[src/hooks/modules/useMarketplace.ts:4](https://github.com/thirdweb-dev/react/blob/945f587/src/hooks/modules/useMarketplace.ts#L4)
274274

275275
___
276276

@@ -290,7 +290,7 @@ ___
290290

291291
#### Defined in
292292

293-
[src/hooks/modules/useNFTCollection.ts:4](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/hooks/modules/useNFTCollection.ts#L4)
293+
[src/hooks/modules/useNFTCollection.ts:4](https://github.com/thirdweb-dev/react/blob/945f587/src/hooks/modules/useNFTCollection.ts#L4)
294294

295295
___
296296

@@ -310,7 +310,7 @@ ___
310310

311311
#### Defined in
312312

313-
[src/hooks/modules/useNFTDrop.ts:4](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/hooks/modules/useNFTDrop.ts#L4)
313+
[src/hooks/modules/useNFTDrop.ts:4](https://github.com/thirdweb-dev/react/blob/945f587/src/hooks/modules/useNFTDrop.ts#L4)
314314

315315
___
316316

@@ -344,7 +344,7 @@ ___
344344

345345
#### Defined in
346346

347-
[src/hooks/modules/usePack.ts:4](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/hooks/modules/usePack.ts#L4)
347+
[src/hooks/modules/usePack.ts:4](https://github.com/thirdweb-dev/react/blob/945f587/src/hooks/modules/usePack.ts#L4)
348348

349349
___
350350

@@ -366,7 +366,7 @@ ___
366366

367367
#### Defined in
368368

369-
[src/hooks/useReadonlySDK.ts:4](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/hooks/useReadonlySDK.ts#L4)
369+
[src/hooks/useReadonlySDK.ts:4](https://github.com/thirdweb-dev/react/blob/945f587/src/hooks/useReadonlySDK.ts#L4)
370370

371371
___
372372

@@ -380,7 +380,7 @@ ___
380380

381381
#### Defined in
382382

383-
[src/Provider.tsx:294](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L294)
383+
[src/Provider.tsx:294](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L294)
384384

385385
___
386386

@@ -394,7 +394,7 @@ ___
394394

395395
#### Defined in
396396

397-
[src/hooks/useSigner.ts:5](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/hooks/useSigner.ts#L5)
397+
[src/hooks/useSigner.ts:5](https://github.com/thirdweb-dev/react/blob/945f587/src/hooks/useSigner.ts#L5)
398398

399399
___
400400

@@ -414,7 +414,7 @@ ___
414414

415415
#### Defined in
416416

417-
[src/hooks/modules/useTokenModule.ts:4](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/hooks/modules/useTokenModule.ts#L4)
417+
[src/hooks/modules/useTokenModule.ts:4](https://github.com/thirdweb-dev/react/blob/945f587/src/hooks/modules/useTokenModule.ts#L4)
418418

419419
___
420420

@@ -434,4 +434,4 @@ ___
434434

435435
#### Defined in
436436

437-
[src/hooks/modules/useVoteModule.ts:4](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/hooks/modules/useVoteModule.ts#L4)
437+
[src/hooks/modules/useVoteModule.ts:4](https://github.com/thirdweb-dev/react/blob/945f587/src/hooks/modules/useVoteModule.ts#L4)

wiki/ThirdwebProviderProps.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ If not provided, will default to the rpcUrls of the chain objects for the suppor
2929

3030
#### Defined in
3131

32-
[src/Provider.tsx:76](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L76)
32+
[src/Provider.tsx:76](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L76)
3333

3434
___
3535

@@ -42,7 +42,7 @@ Defaults to just the name being passed as `thirdweb powered dApp`.
4242

4343
#### Defined in
4444

45-
[src/Provider.tsx:81](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L81)
45+
[src/Provider.tsx:81](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L81)
4646

4747
___
4848

@@ -56,7 +56,7 @@ When passing a chainId, it **must** be part of the `supportedChains` array.
5656

5757
#### Defined in
5858

59-
[src/Provider.tsx:87](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L87)
59+
[src/Provider.tsx:87](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L87)
6060

6161
___
6262

@@ -81,7 +81,7 @@ comes with sensible defaults
8181

8282
#### Defined in
8383

84-
[src/Provider.tsx:61](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L61)
84+
[src/Provider.tsx:61](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L61)
8585

8686
___
8787

@@ -93,7 +93,7 @@ The storage interface to use with the sdk.
9393

9494
#### Defined in
9595

96-
[src/Provider.tsx:94](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L94)
96+
[src/Provider.tsx:94](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L94)
9797

9898
___
9999

@@ -106,7 +106,7 @@ If not provided, all chains supported by the SDK will be supported by default
106106

107107
#### Defined in
108108

109-
[src/Provider.tsx:66](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L66)
109+
[src/Provider.tsx:66](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L66)
110110

111111
___
112112

@@ -119,4 +119,4 @@ If not provided, will default to metamask (injected), wallet connect and walletl
119119

120120
#### Defined in
121121

122-
[src/Provider.tsx:71](https://github.com/thirdweb-dev/react/blob/b4c1a4d/src/Provider.tsx#L71)
122+
[src/Provider.tsx:71](https://github.com/thirdweb-dev/react/blob/945f587/src/Provider.tsx#L71)

0 commit comments

Comments
 (0)