viem 2.21.48 → 2.21.49
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +22 -0
- package/_cjs/accounts/index.js +2 -1
- package/_cjs/accounts/index.js.map +1 -1
- package/_cjs/accounts/utils/sign.js +8 -1
- package/_cjs/accounts/utils/sign.js.map +1 -1
- package/_cjs/actions/public/simulateContract.js.map +1 -1
- package/_cjs/chains/definitions/bitgert.js +6 -0
- package/_cjs/chains/definitions/bitgert.js.map +1 -1
- package/_cjs/chains/definitions/disChain.js +25 -0
- package/_cjs/chains/definitions/disChain.js.map +1 -0
- package/_cjs/chains/definitions/guruNetwork.js +32 -0
- package/_cjs/chains/definitions/guruNetwork.js.map +1 -0
- package/_cjs/chains/definitions/guruTestnet.js +2 -2
- package/_cjs/chains/definitions/guruTestnet.js.map +1 -1
- package/_cjs/chains/definitions/iSunCoin.js +25 -0
- package/_cjs/chains/definitions/iSunCoin.js.map +1 -0
- package/_cjs/chains/definitions/metadium.js +24 -0
- package/_cjs/chains/definitions/metadium.js.map +1 -0
- package/_cjs/chains/definitions/sixProtocol.js +26 -0
- package/_cjs/chains/definitions/sixProtocol.js.map +1 -0
- package/_cjs/chains/index.js +18 -7
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/zksync/formatters.js +3 -1
- package/_cjs/zksync/formatters.js.map +1 -1
- package/_esm/accounts/index.js +1 -1
- package/_esm/accounts/index.js.map +1 -1
- package/_esm/accounts/utils/sign.js +10 -1
- package/_esm/accounts/utils/sign.js.map +1 -1
- package/_esm/actions/public/simulateContract.js.map +1 -1
- package/_esm/chains/definitions/bitgert.js +6 -0
- package/_esm/chains/definitions/bitgert.js.map +1 -1
- package/_esm/chains/definitions/disChain.js +22 -0
- package/_esm/chains/definitions/disChain.js.map +1 -0
- package/_esm/chains/definitions/guruNetwork.js +29 -0
- package/_esm/chains/definitions/guruNetwork.js.map +1 -0
- package/_esm/chains/definitions/guruTestnet.js +2 -2
- package/_esm/chains/definitions/guruTestnet.js.map +1 -1
- package/_esm/chains/definitions/iSunCoin.js +22 -0
- package/_esm/chains/definitions/iSunCoin.js.map +1 -0
- package/_esm/chains/definitions/metadium.js +21 -0
- package/_esm/chains/definitions/metadium.js.map +1 -0
- package/_esm/chains/definitions/sixProtocol.js +23 -0
- package/_esm/chains/definitions/sixProtocol.js.map +1 -0
- package/_esm/chains/index.js +5 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/zksync/formatters.js +3 -1
- package/_esm/zksync/formatters.js.map +1 -1
- package/_types/accounts/index.d.ts +1 -1
- package/_types/accounts/index.d.ts.map +1 -1
- package/_types/accounts/utils/sign.d.ts +4 -0
- package/_types/accounts/utils/sign.d.ts.map +1 -1
- package/_types/actions/public/simulateContract.d.ts +6 -6
- package/_types/actions/public/simulateContract.d.ts.map +1 -1
- package/_types/chains/definitions/bitgert.d.ts +6 -10
- package/_types/chains/definitions/bitgert.d.ts.map +1 -1
- package/_types/chains/definitions/disChain.d.ts +37 -0
- package/_types/chains/definitions/disChain.d.ts.map +1 -0
- package/_types/chains/definitions/guruNetwork.d.ts +33 -0
- package/_types/chains/definitions/guruNetwork.d.ts.map +1 -0
- package/_types/chains/definitions/guruTestnet.d.ts +2 -2
- package/_types/chains/definitions/guruTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/iSunCoin.d.ts +37 -0
- package/_types/chains/definitions/iSunCoin.d.ts.map +1 -0
- package/_types/chains/definitions/metadium.d.ts +37 -0
- package/_types/chains/definitions/metadium.d.ts.map +1 -0
- package/_types/chains/definitions/sixProtocol.d.ts +37 -0
- package/_types/chains/definitions/sixProtocol.d.ts.map +1 -0
- package/_types/chains/index.d.ts +5 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/types/account.d.ts +1 -1
- package/_types/types/account.d.ts.map +1 -1
- package/_types/zksync/formatters.d.ts.map +1 -1
- package/_types/zksync/types/log.d.ts +1 -1
- package/_types/zksync/types/log.d.ts.map +1 -1
- package/accounts/index.ts +1 -0
- package/accounts/utils/sign.ts +15 -1
- package/actions/public/simulateContract.ts +9 -7
- package/chains/definitions/bitgert.ts +6 -0
- package/chains/definitions/disChain.ts +22 -0
- package/chains/definitions/guruNetwork.ts +29 -0
- package/chains/definitions/guruTestnet.ts +2 -2
- package/chains/definitions/iSunCoin.ts +22 -0
- package/chains/definitions/metadium.ts +21 -0
- package/chains/definitions/sixProtocol.ts +23 -0
- package/chains/index.ts +5 -0
- package/errors/version.ts +1 -1
- package/package.json +1 -1
- package/types/account.ts +2 -1
- package/zksync/formatters.ts +3 -1
- package/zksync/types/log.ts +1 -1
package/types/account.ts
CHANGED
@@ -30,9 +30,10 @@ export type GetAccountParameter<
|
|
30
30
|
>
|
31
31
|
|
32
32
|
export type ParseAccount<
|
33
|
-
accountOrAddress extends Account | Address | undefined =
|
33
|
+
accountOrAddress extends Account | Address | null | undefined =
|
34
34
|
| Account
|
35
35
|
| Address
|
36
|
+
| null
|
36
37
|
| undefined,
|
37
38
|
> = accountOrAddress extends Address
|
38
39
|
? Prettify<JsonRpcAccount<accountOrAddress>>
|
package/zksync/formatters.ts
CHANGED
@@ -81,7 +81,9 @@ export const formatters = {
|
|
81
81
|
return {
|
82
82
|
blockNumber: hexToBigInt(l2ToL1Log.blockHash),
|
83
83
|
blockHash: l2ToL1Log.blockHash,
|
84
|
-
l1BatchNumber:
|
84
|
+
l1BatchNumber: l2ToL1Log.l1BatchNumber
|
85
|
+
? hexToBigInt(l2ToL1Log.l1BatchNumber)
|
86
|
+
: null,
|
85
87
|
transactionIndex: hexToBigInt(l2ToL1Log.transactionIndex),
|
86
88
|
shardId: hexToBigInt(l2ToL1Log.shardId),
|
87
89
|
isService: l2ToL1Log.isService,
|