viem 0.0.0-main.20231119T230454 → 0.0.0-main.20231119T230657

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.
@@ -12,8 +12,8 @@ exports.bscTestnet = (0, defineChain_js_1.defineChain)({
12
12
  symbol: 'tBNB',
13
13
  },
14
14
  rpcUrls: {
15
- default: { http: ['https://data-seed-prebsc-1-s1.binance.org:8545'] },
16
- public: { http: ['https://data-seed-prebsc-1-s1.binance.org:8545'] },
15
+ default: { http: ['https://data-seed-prebsc-1-s1.bnbchain.org:8545'] },
16
+ public: { http: ['https://data-seed-prebsc-1-s1.bnbchain.org:8545'] },
17
17
  },
18
18
  blockExplorers: {
19
19
  etherscan: { name: 'BscScan', url: 'https://testnet.bscscan.com' },
@@ -1 +1 @@
1
- {"version":3,"file":"bscTestnet.js","sourceRoot":"","sources":["../../../chains/definitions/bscTestnet.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,UAAU,GAAiB,IAAA,4BAAW,EAAC;IAClD,EAAE,EAAE,EAAE;IACN,IAAI,EAAE,6BAA6B;IACnC,OAAO,EAAE,aAAa;IACtB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,MAAM;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,gDAAgD,CAAC,EAAE;QACrE,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,gDAAgD,CAAC,EAAE;KACrE;IACD,cAAc,EAAE;QACd,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,6BAA6B,EAAE;QAClE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,6BAA6B,EAAE;KACjE;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,QAAQ;SACvB;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
1
+ {"version":3,"file":"bscTestnet.js","sourceRoot":"","sources":["../../../chains/definitions/bscTestnet.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,UAAU,GAAiB,IAAA,4BAAW,EAAC;IAClD,EAAE,EAAE,EAAE;IACN,IAAI,EAAE,6BAA6B;IACnC,OAAO,EAAE,aAAa;IACtB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,MAAM;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,iDAAiD,CAAC,EAAE;QACtE,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,iDAAiD,CAAC,EAAE;KACtE;IACD,cAAc,EAAE;QACd,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,6BAA6B,EAAE;QAClE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,6BAA6B,EAAE;KACjE;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,QAAQ;SACvB;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '0.0.0-main.20231119T230454';
4
+ exports.version = '0.0.0-main.20231119T230657';
5
5
  //# sourceMappingURL=version.js.map
@@ -9,8 +9,8 @@ export const bscTestnet = /*#__PURE__*/ defineChain({
9
9
  symbol: 'tBNB',
10
10
  },
11
11
  rpcUrls: {
12
- default: { http: ['https://data-seed-prebsc-1-s1.binance.org:8545'] },
13
- public: { http: ['https://data-seed-prebsc-1-s1.binance.org:8545'] },
12
+ default: { http: ['https://data-seed-prebsc-1-s1.bnbchain.org:8545'] },
13
+ public: { http: ['https://data-seed-prebsc-1-s1.bnbchain.org:8545'] },
14
14
  },
15
15
  blockExplorers: {
16
16
  etherscan: { name: 'BscScan', url: 'https://testnet.bscscan.com' },
@@ -1 +1 @@
1
- {"version":3,"file":"bscTestnet.js","sourceRoot":"","sources":["../../../chains/definitions/bscTestnet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,WAAW,CAAC;IAClD,EAAE,EAAE,EAAE;IACN,IAAI,EAAE,6BAA6B;IACnC,OAAO,EAAE,aAAa;IACtB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,MAAM;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,gDAAgD,CAAC,EAAE;QACrE,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,gDAAgD,CAAC,EAAE;KACrE;IACD,cAAc,EAAE;QACd,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,6BAA6B,EAAE;QAClE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,6BAA6B,EAAE;KACjE;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,QAAQ;SACvB;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
1
+ {"version":3,"file":"bscTestnet.js","sourceRoot":"","sources":["../../../chains/definitions/bscTestnet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,WAAW,CAAC;IAClD,EAAE,EAAE,EAAE;IACN,IAAI,EAAE,6BAA6B;IACnC,OAAO,EAAE,aAAa;IACtB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,MAAM;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,iDAAiD,CAAC,EAAE;QACtE,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,iDAAiD,CAAC,EAAE;KACtE;IACD,cAAc,EAAE;QACd,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,6BAA6B,EAAE;QAClE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,6BAA6B,EAAE;KACjE;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,QAAQ;SACvB;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
@@ -1,2 +1,2 @@
1
- export const version = '0.0.0-main.20231119T230454';
1
+ export const version = '0.0.0-main.20231119T230657';
2
2
  //# sourceMappingURL=version.js.map
@@ -9,10 +9,10 @@ export declare const bscTestnet: import("../../types/utils.js").Assign<{
9
9
  };
10
10
  readonly rpcUrls: {
11
11
  readonly default: {
12
- readonly http: readonly ["https://data-seed-prebsc-1-s1.binance.org:8545"];
12
+ readonly http: readonly ["https://data-seed-prebsc-1-s1.bnbchain.org:8545"];
13
13
  };
14
14
  readonly public: {
15
- readonly http: readonly ["https://data-seed-prebsc-1-s1.binance.org:8545"];
15
+ readonly http: readonly ["https://data-seed-prebsc-1-s1.bnbchain.org:8545"];
16
16
  };
17
17
  };
18
18
  readonly blockExplorers: {
@@ -1,2 +1,2 @@
1
- export declare const version = "0.0.0-main.20231119T230454";
1
+ export declare const version = "0.0.0-main.20231119T230657";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -10,8 +10,8 @@ export const bscTestnet = /*#__PURE__*/ defineChain({
10
10
  symbol: 'tBNB',
11
11
  },
12
12
  rpcUrls: {
13
- default: { http: ['https://data-seed-prebsc-1-s1.binance.org:8545'] },
14
- public: { http: ['https://data-seed-prebsc-1-s1.binance.org:8545'] },
13
+ default: { http: ['https://data-seed-prebsc-1-s1.bnbchain.org:8545'] },
14
+ public: { http: ['https://data-seed-prebsc-1-s1.bnbchain.org:8545'] },
15
15
  },
16
16
  blockExplorers: {
17
17
  etherscan: { name: 'BscScan', url: 'https://testnet.bscscan.com' },
package/errors/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '0.0.0-main.20231119T230454'
1
+ export const version = '0.0.0-main.20231119T230657'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "0.0.0-main.20231119T230454",
4
+ "version": "0.0.0-main.20231119T230657",
5
5
  "type": "module",
6
6
  "main": "./_cjs/index.js",
7
7
  "module": "./_esm/index.js",
@@ -6,13 +6,13 @@ export type FormatEtherErrorType = FormatUnitsErrorType
6
6
 
7
7
  /**
8
8
  * Converts numerical wei to a string representation of ether.
9
- *
9
+ *
10
10
  * - Docs: https://viem.sh/docs/utilities/formatEther.html
11
11
  *
12
12
  * @example
13
13
  * import { formatEther } from 'viem'
14
14
  *
15
- * formatEther(1000000000000000000n)
15
+ * formatEther(1000000000000000000n)
16
16
  * // '1'
17
17
  */
18
18
  export function formatEther(wei: bigint, unit: 'wei' | 'gwei' = 'wei') {
@@ -6,13 +6,13 @@ export type FormatGweiErrorType = FormatUnitsErrorType
6
6
 
7
7
  /**
8
8
  * Converts numerical wei to a string representation of gwei.
9
- *
9
+ *
10
10
  * - Docs: https://viem.sh/docs/utilities/formatGwei.html
11
11
  *
12
12
  * @example
13
13
  * import { formatGwei } from 'viem'
14
14
  *
15
- * formatGwei(1000000000n)
15
+ * formatGwei(1000000000n)
16
16
  * // '1'
17
17
  */
18
18
  export function formatGwei(wei: bigint, unit: 'wei' = 'wei') {
@@ -4,13 +4,13 @@ export type FormatUnitsErrorType = ErrorType
4
4
 
5
5
  /**
6
6
  * Divides a number by a given exponent of base 10 (10exponent), and formats it into a string representation of the number..
7
- *
7
+ *
8
8
  * - Docs: https://viem.sh/docs/utilities/formatUnits.html
9
9
  *
10
10
  * @example
11
11
  * import { formatUnits } from 'viem'
12
12
  *
13
- * formatUnits(420000000000n, 9)
13
+ * formatUnits(420000000000n, 9)
14
14
  * // '420'
15
15
  */
16
16
  export function formatUnits(value: bigint, decimals: number) {
@@ -7,7 +7,7 @@ export type ParseEtherErrorType = ParseUnitsErrorType | ErrorType
7
7
 
8
8
  /**
9
9
  * Converts a string representation of ether to numerical wei.
10
- *
10
+ *
11
11
  * - Docs: https://viem.sh/docs/utilities/parseEther.html
12
12
  *
13
13
  * @example
@@ -7,13 +7,13 @@ export type ParseGweiErrorType = ParseUnitsErrorType | ErrorType
7
7
 
8
8
  /**
9
9
  * Converts a string representation of gwei to numerical wei.
10
- *
10
+ *
11
11
  * - Docs: https://viem.sh/docs/utilities/parseGwei.html
12
12
  *
13
13
  * @example
14
14
  * import { parseGwei } from 'viem'
15
15
  *
16
- * parseGwei('420')
16
+ * parseGwei('420')
17
17
  * // 420000000000n
18
18
  */
19
19
  export function parseGwei(ether: string, unit: 'wei' = 'wei') {
@@ -4,7 +4,7 @@ export type ParseUnitsErrorType = ErrorType
4
4
 
5
5
  /**
6
6
  * Multiplies a string representation of a number by a given exponent of base 10 (10exponent).
7
- *
7
+ *
8
8
  * - Docs: https://viem.sh/docs/utilities/parseUnits.html
9
9
  *
10
10
  * @example