@wagmi/core 0.8.14-cjs → 0.8.15-cjs
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -5
- package/package.json +3 -3
- package/internal/dist/wagmi-core-internal.cjs.d.ts +0 -11
- package/internal/dist/wagmi-core-internal.cjs.js +0 -16
- package/providers/alchemy/dist/wagmi-core-providers-alchemy.cjs.d.ts +0 -11
- package/providers/alchemy/dist/wagmi-core-providers-alchemy.cjs.js +0 -16
- package/providers/infura/dist/wagmi-core-providers-infura.cjs.d.ts +0 -11
- package/providers/infura/dist/wagmi-core-providers-infura.cjs.js +0 -16
- package/providers/jsonRpc/dist/wagmi-core-providers-jsonRpc.cjs.d.ts +0 -11
- package/providers/jsonRpc/dist/wagmi-core-providers-jsonRpc.cjs.js +0 -16
- package/providers/public/dist/wagmi-core-providers-public.cjs.d.ts +0 -11
- package/providers/public/dist/wagmi-core-providers-public.cjs.js +0 -16
package/dist/index.d.ts
CHANGED
|
@@ -1347,7 +1347,7 @@ declare function prepareSendTransaction({ chainId, request, signer: signer_, }:
|
|
|
1347
1347
|
type SendTransactionPreparedRequest = {
|
|
1348
1348
|
/**
|
|
1349
1349
|
* `recklesslyUnprepared`: Allow to pass through an unprepared `request`. Note: This has
|
|
1350
|
-
* [UX pitfalls](/docs/prepare-hooks
|
|
1350
|
+
* [UX pitfalls](/docs/prepare-hooks#ux-pitfalls-without-prepare-hooks), it is highly recommended
|
|
1351
1351
|
* to not use this and instead prepare the request upfront using the `prepareSendTransaction` function.
|
|
1352
1352
|
*
|
|
1353
1353
|
* `prepared`: The request has been prepared with parameters required for sending a transaction
|
|
@@ -1377,7 +1377,7 @@ type SendTransactionResult = {
|
|
|
1377
1377
|
* @description Function to send a transaction.
|
|
1378
1378
|
*
|
|
1379
1379
|
* It is recommended to pair this with the `prepareSendTransaction` function to avoid
|
|
1380
|
-
* [UX pitfalls](https://wagmi.sh/react/prepare-hooks
|
|
1380
|
+
* [UX pitfalls](https://wagmi.sh/react/prepare-hooks#ux-pitfalls-without-prepare-hooks).
|
|
1381
1381
|
*
|
|
1382
1382
|
* @example
|
|
1383
1383
|
* import { prepareSendTransaction, sendTransaction } from '@wagmi/core'
|
|
@@ -1422,7 +1422,7 @@ type Request = PopulatedTransaction & {
|
|
|
1422
1422
|
type WriteContractPreparedArgs<TAbi extends Abi | readonly unknown[], TFunctionName extends string> = {
|
|
1423
1423
|
/**
|
|
1424
1424
|
* `recklesslyUnprepared`: Allow to pass through unprepared config. Note: This has
|
|
1425
|
-
* [UX pitfalls](https://wagmi.sh/react/prepare-hooks
|
|
1425
|
+
* [UX pitfalls](https://wagmi.sh/react/prepare-hooks#ux-pitfalls-without-prepare-hooks),
|
|
1426
1426
|
* it is highly recommended to not use this and instead prepare the request upfront
|
|
1427
1427
|
* using the {@link prepareWriteContract} function.
|
|
1428
1428
|
*
|
|
@@ -1440,7 +1440,7 @@ type WriteContractPreparedArgs<TAbi extends Abi | readonly unknown[], TFunctionN
|
|
|
1440
1440
|
type WriteContractUnpreparedArgs<TAbi extends Abi | readonly unknown[], TFunctionName extends string> = {
|
|
1441
1441
|
/**
|
|
1442
1442
|
* `recklesslyUnprepared`: Allow to pass through unprepared config. Note: This has
|
|
1443
|
-
* [UX pitfalls](https://wagmi.sh/react/prepare-hooks
|
|
1443
|
+
* [UX pitfalls](https://wagmi.sh/react/prepare-hooks#ux-pitfalls-without-prepare-hooks),
|
|
1444
1444
|
* it is highly recommended to not use this and instead prepare the request upfront
|
|
1445
1445
|
* using the {@link prepareWriteContract} function.
|
|
1446
1446
|
*
|
|
@@ -1466,7 +1466,7 @@ type WriteContractResult = SendTransactionResult;
|
|
|
1466
1466
|
* @description Function to call a contract write method.
|
|
1467
1467
|
*
|
|
1468
1468
|
* It is recommended to pair this with the {@link prepareWriteContract} function
|
|
1469
|
-
* to avoid [UX pitfalls](https://wagmi.sh/react/prepare-hooks
|
|
1469
|
+
* to avoid [UX pitfalls](https://wagmi.sh/react/prepare-hooks#ux-pitfalls-without-prepare-hooks).
|
|
1470
1470
|
*
|
|
1471
1471
|
* @example
|
|
1472
1472
|
* import { prepareWriteContract, writeContract } from '@wagmi/core'
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@wagmi/core",
|
|
3
3
|
"description": "Vanilla JS library for Ethereum",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.8.
|
|
5
|
+
"version": "0.8.15-cjs",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/wagmi-dev/wagmi.git",
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
"dependencies": {
|
|
113
|
-
"@wagmi/chains": "0.1.
|
|
114
|
-
"@wagmi/connectors": "0.1.
|
|
113
|
+
"@wagmi/chains": "0.1.10-cjs",
|
|
114
|
+
"@wagmi/connectors": "0.1.8-cjs",
|
|
115
115
|
"abitype": "^0.2.5",
|
|
116
116
|
"eventemitter3": "^4.0.7",
|
|
117
117
|
"zustand": "^4.3.1"
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// are you seeing an error that a default export doesn't exist but your source file has a default export?
|
|
2
|
-
// you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook
|
|
3
|
-
|
|
4
|
-
// curious why you need to?
|
|
5
|
-
// this file exists so that you can import from the entrypoint normally
|
|
6
|
-
// except that it points to your source file and you don't need to run build constantly
|
|
7
|
-
// which means we need to re-export all of the modules from your source file
|
|
8
|
-
// and since export * doesn't include default exports, we need to read your source file
|
|
9
|
-
// to check for a default export and re-export it if it exists
|
|
10
|
-
// it's not ideal, but it works pretty well ¯\_(ツ)_/¯
|
|
11
|
-
export * from "../../src/internal";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// this file might look strange and you might be wondering what it's for
|
|
3
|
-
// it's lets you import your source files by importing this entrypoint
|
|
4
|
-
// as you would import it if it was built with preconstruct build
|
|
5
|
-
// this file is slightly different to some others though
|
|
6
|
-
// it has a require hook which compiles your code with Babel
|
|
7
|
-
// this means that you don't have to set up @babel/register or anything like that
|
|
8
|
-
// but you can still require this module and it'll be compiled
|
|
9
|
-
|
|
10
|
-
// this bit of code imports the require hook and registers it
|
|
11
|
-
let unregister = require("../../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../../..", "../..");
|
|
12
|
-
|
|
13
|
-
// this re-exports the source file
|
|
14
|
-
module.exports = require("../../src/internal.ts");
|
|
15
|
-
|
|
16
|
-
unregister();
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// are you seeing an error that a default export doesn't exist but your source file has a default export?
|
|
2
|
-
// you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook
|
|
3
|
-
|
|
4
|
-
// curious why you need to?
|
|
5
|
-
// this file exists so that you can import from the entrypoint normally
|
|
6
|
-
// except that it points to your source file and you don't need to run build constantly
|
|
7
|
-
// which means we need to re-export all of the modules from your source file
|
|
8
|
-
// and since export * doesn't include default exports, we need to read your source file
|
|
9
|
-
// to check for a default export and re-export it if it exists
|
|
10
|
-
// it's not ideal, but it works pretty well ¯\_(ツ)_/¯
|
|
11
|
-
export * from "../../../src/providers/alchemy";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// this file might look strange and you might be wondering what it's for
|
|
3
|
-
// it's lets you import your source files by importing this entrypoint
|
|
4
|
-
// as you would import it if it was built with preconstruct build
|
|
5
|
-
// this file is slightly different to some others though
|
|
6
|
-
// it has a require hook which compiles your code with Babel
|
|
7
|
-
// this means that you don't have to set up @babel/register or anything like that
|
|
8
|
-
// but you can still require this module and it'll be compiled
|
|
9
|
-
|
|
10
|
-
// this bit of code imports the require hook and registers it
|
|
11
|
-
let unregister = require("../../../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../../../..", "../../..");
|
|
12
|
-
|
|
13
|
-
// this re-exports the source file
|
|
14
|
-
module.exports = require("../../../src/providers/alchemy.ts");
|
|
15
|
-
|
|
16
|
-
unregister();
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// are you seeing an error that a default export doesn't exist but your source file has a default export?
|
|
2
|
-
// you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook
|
|
3
|
-
|
|
4
|
-
// curious why you need to?
|
|
5
|
-
// this file exists so that you can import from the entrypoint normally
|
|
6
|
-
// except that it points to your source file and you don't need to run build constantly
|
|
7
|
-
// which means we need to re-export all of the modules from your source file
|
|
8
|
-
// and since export * doesn't include default exports, we need to read your source file
|
|
9
|
-
// to check for a default export and re-export it if it exists
|
|
10
|
-
// it's not ideal, but it works pretty well ¯\_(ツ)_/¯
|
|
11
|
-
export * from "../../../src/providers/infura";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// this file might look strange and you might be wondering what it's for
|
|
3
|
-
// it's lets you import your source files by importing this entrypoint
|
|
4
|
-
// as you would import it if it was built with preconstruct build
|
|
5
|
-
// this file is slightly different to some others though
|
|
6
|
-
// it has a require hook which compiles your code with Babel
|
|
7
|
-
// this means that you don't have to set up @babel/register or anything like that
|
|
8
|
-
// but you can still require this module and it'll be compiled
|
|
9
|
-
|
|
10
|
-
// this bit of code imports the require hook and registers it
|
|
11
|
-
let unregister = require("../../../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../../../..", "../../..");
|
|
12
|
-
|
|
13
|
-
// this re-exports the source file
|
|
14
|
-
module.exports = require("../../../src/providers/infura.ts");
|
|
15
|
-
|
|
16
|
-
unregister();
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// are you seeing an error that a default export doesn't exist but your source file has a default export?
|
|
2
|
-
// you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook
|
|
3
|
-
|
|
4
|
-
// curious why you need to?
|
|
5
|
-
// this file exists so that you can import from the entrypoint normally
|
|
6
|
-
// except that it points to your source file and you don't need to run build constantly
|
|
7
|
-
// which means we need to re-export all of the modules from your source file
|
|
8
|
-
// and since export * doesn't include default exports, we need to read your source file
|
|
9
|
-
// to check for a default export and re-export it if it exists
|
|
10
|
-
// it's not ideal, but it works pretty well ¯\_(ツ)_/¯
|
|
11
|
-
export * from "../../../src/providers/jsonRpc";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// this file might look strange and you might be wondering what it's for
|
|
3
|
-
// it's lets you import your source files by importing this entrypoint
|
|
4
|
-
// as you would import it if it was built with preconstruct build
|
|
5
|
-
// this file is slightly different to some others though
|
|
6
|
-
// it has a require hook which compiles your code with Babel
|
|
7
|
-
// this means that you don't have to set up @babel/register or anything like that
|
|
8
|
-
// but you can still require this module and it'll be compiled
|
|
9
|
-
|
|
10
|
-
// this bit of code imports the require hook and registers it
|
|
11
|
-
let unregister = require("../../../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../../../..", "../../..");
|
|
12
|
-
|
|
13
|
-
// this re-exports the source file
|
|
14
|
-
module.exports = require("../../../src/providers/jsonRpc.ts");
|
|
15
|
-
|
|
16
|
-
unregister();
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// are you seeing an error that a default export doesn't exist but your source file has a default export?
|
|
2
|
-
// you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook
|
|
3
|
-
|
|
4
|
-
// curious why you need to?
|
|
5
|
-
// this file exists so that you can import from the entrypoint normally
|
|
6
|
-
// except that it points to your source file and you don't need to run build constantly
|
|
7
|
-
// which means we need to re-export all of the modules from your source file
|
|
8
|
-
// and since export * doesn't include default exports, we need to read your source file
|
|
9
|
-
// to check for a default export and re-export it if it exists
|
|
10
|
-
// it's not ideal, but it works pretty well ¯\_(ツ)_/¯
|
|
11
|
-
export * from "../../../src/providers/public";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// this file might look strange and you might be wondering what it's for
|
|
3
|
-
// it's lets you import your source files by importing this entrypoint
|
|
4
|
-
// as you would import it if it was built with preconstruct build
|
|
5
|
-
// this file is slightly different to some others though
|
|
6
|
-
// it has a require hook which compiles your code with Babel
|
|
7
|
-
// this means that you don't have to set up @babel/register or anything like that
|
|
8
|
-
// but you can still require this module and it'll be compiled
|
|
9
|
-
|
|
10
|
-
// this bit of code imports the require hook and registers it
|
|
11
|
-
let unregister = require("../../../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../../../..", "../../..");
|
|
12
|
-
|
|
13
|
-
// this re-exports the source file
|
|
14
|
-
module.exports = require("../../../src/providers/public.ts");
|
|
15
|
-
|
|
16
|
-
unregister();
|