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.
- package/_cjs/chains/definitions/bscTestnet.js +2 -2
- package/_cjs/chains/definitions/bscTestnet.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_esm/chains/definitions/bscTestnet.js +2 -2
- package/_esm/chains/definitions/bscTestnet.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/chains/definitions/bscTestnet.d.ts +2 -2
- package/_types/errors/version.d.ts +1 -1
- package/chains/definitions/bscTestnet.ts +2 -2
- package/errors/version.ts +1 -1
- package/package.json +1 -1
- package/utils/unit/formatEther.ts +2 -2
- package/utils/unit/formatGwei.ts +2 -2
- package/utils/unit/formatUnits.ts +2 -2
- package/utils/unit/parseEther.ts +1 -1
- package/utils/unit/parseGwei.ts +2 -2
- package/utils/unit/parseUnits.ts +1 -1
@@ -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.
|
16
|
-
public: { http: ['https://data-seed-prebsc-1-s1.
|
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,
|
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"}
|
package/_cjs/errors/version.js
CHANGED
@@ -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.
|
13
|
-
public: { http: ['https://data-seed-prebsc-1-s1.
|
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,
|
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"}
|
package/_esm/errors/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export const version = '0.0.0-main.
|
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.
|
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.
|
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.
|
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.
|
14
|
-
public: { http: ['https://data-seed-prebsc-1-s1.
|
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.
|
1
|
+
export const version = '0.0.0-main.20231119T230657'
|
package/package.json
CHANGED
@@ -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') {
|
package/utils/unit/formatGwei.ts
CHANGED
@@ -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) {
|
package/utils/unit/parseEther.ts
CHANGED
package/utils/unit/parseGwei.ts
CHANGED
@@ -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') {
|
package/utils/unit/parseUnits.ts
CHANGED