viem 2.43.5 → 2.44.1
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/CHANGELOG.md +48 -0
- package/_cjs/account-abstraction/utils/userOperation/toPackedUserOperation.js +11 -1
- package/_cjs/account-abstraction/utils/userOperation/toPackedUserOperation.js.map +1 -1
- package/_cjs/actions/wallet/sendTransactionSync.js +1 -0
- package/_cjs/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_cjs/chains/definitions/codex.js +47 -0
- package/_cjs/chains/definitions/codex.js.map +1 -0
- package/_cjs/chains/definitions/codexTestnet.js +47 -0
- package/_cjs/chains/definitions/codexTestnet.js.map +1 -0
- package/_cjs/chains/definitions/paseoPassetHub.js +26 -0
- package/_cjs/chains/definitions/paseoPassetHub.js.map +1 -0
- package/_cjs/chains/definitions/{tempoTestnet.js → tempoAndantino.js} +5 -5
- package/_cjs/chains/definitions/tempoAndantino.js.map +1 -0
- package/_cjs/chains/definitions/tempoDevnet.js +6 -0
- package/_cjs/chains/definitions/tempoDevnet.js.map +1 -1
- package/_cjs/chains/definitions/tempoModerato.js +28 -0
- package/_cjs/chains/definitions/tempoModerato.js.map +1 -0
- package/_cjs/chains/index.js +23 -14
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/tempo/Abis.js +610 -752
- package/_cjs/tempo/Abis.js.map +1 -1
- package/_cjs/tempo/Addresses.js +2 -2
- package/_cjs/tempo/Addresses.js.map +1 -1
- package/_cjs/tempo/Decorator.js +5 -5
- package/_cjs/tempo/Decorator.js.map +1 -1
- package/_cjs/tempo/actions/amm.js +4 -38
- package/_cjs/tempo/actions/amm.js.map +1 -1
- package/_cjs/tempo/actions/dex.js +98 -46
- package/_cjs/tempo/actions/dex.js.map +1 -1
- package/_cjs/tempo/actions/nonce.js +0 -35
- package/_cjs/tempo/actions/nonce.js.map +1 -1
- package/_cjs/tempo/actions/reward.js +81 -62
- package/_cjs/tempo/actions/reward.js.map +1 -1
- package/_cjs/tempo/actions/token.js +11 -2
- package/_cjs/tempo/actions/token.js.map +1 -1
- package/_cjs/tempo/chainConfig.js +7 -6
- package/_cjs/tempo/chainConfig.js.map +1 -1
- package/_cjs/tempo/index.js +2 -1
- package/_cjs/tempo/index.js.map +1 -1
- package/_esm/account-abstraction/utils/userOperation/toPackedUserOperation.js +16 -2
- package/_esm/account-abstraction/utils/userOperation/toPackedUserOperation.js.map +1 -1
- package/_esm/actions/wallet/sendTransactionSync.js +1 -0
- package/_esm/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_esm/chains/definitions/codex.js +44 -0
- package/_esm/chains/definitions/codex.js.map +1 -0
- package/_esm/chains/definitions/codexTestnet.js +44 -0
- package/_esm/chains/definitions/codexTestnet.js.map +1 -0
- package/_esm/chains/definitions/paseoPassetHub.js +23 -0
- package/_esm/chains/definitions/paseoPassetHub.js.map +1 -0
- package/_esm/chains/definitions/{tempoTestnet.js → tempoAndantino.js} +4 -4
- package/_esm/chains/definitions/tempoAndantino.js.map +1 -0
- package/_esm/chains/definitions/tempoDevnet.js +6 -0
- package/_esm/chains/definitions/tempoDevnet.js.map +1 -1
- package/_esm/chains/definitions/tempoModerato.js +25 -0
- package/_esm/chains/definitions/tempoModerato.js.map +1 -0
- package/_esm/chains/index.js +9 -1
- package/_esm/chains/index.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/tempo/Abis.js +609 -751
- package/_esm/tempo/Abis.js.map +1 -1
- package/_esm/tempo/Addresses.js +1 -1
- package/_esm/tempo/Addresses.js.map +1 -1
- package/_esm/tempo/Decorator.js +5 -5
- package/_esm/tempo/Decorator.js.map +1 -1
- package/_esm/tempo/actions/amm.js +4 -62
- package/_esm/tempo/actions/amm.js.map +1 -1
- package/_esm/tempo/actions/dex.js +192 -48
- package/_esm/tempo/actions/dex.js.map +1 -1
- package/_esm/tempo/actions/nonce.js +0 -94
- package/_esm/tempo/actions/nonce.js.map +1 -1
- package/_esm/tempo/actions/reward.js +227 -189
- package/_esm/tempo/actions/reward.js.map +1 -1
- package/_esm/tempo/actions/token.js +11 -2
- package/_esm/tempo/actions/token.js.map +1 -1
- package/_esm/tempo/chainConfig.js +5 -3
- package/_esm/tempo/chainConfig.js.map +1 -1
- package/_esm/tempo/index.js +1 -1
- package/_esm/tempo/index.js.map +1 -1
- package/_types/account-abstraction/utils/userOperation/toPackedUserOperation.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransactionSync.d.ts.map +1 -1
- package/_types/celo/chainConfig.d.ts +22 -22
- package/_types/celo/formatters.d.ts +11 -11
- package/_types/chains/definitions/abstract.d.ts +14 -14
- package/_types/chains/definitions/abstractTestnet.d.ts +14 -14
- package/_types/chains/definitions/ancient8.d.ts +3 -3
- package/_types/chains/definitions/ancient8Sepolia.d.ts +3 -3
- package/_types/chains/definitions/base.d.ts +6 -6
- package/_types/chains/definitions/baseGoerli.d.ts +3 -3
- package/_types/chains/definitions/baseSepolia.d.ts +6 -6
- package/_types/chains/definitions/blast.d.ts +3 -3
- package/_types/chains/definitions/bob.d.ts +3 -3
- package/_types/chains/definitions/bobSepolia.d.ts +3 -3
- package/_types/chains/definitions/celo.d.ts +22 -22
- package/_types/chains/definitions/celoAlfajores.d.ts +22 -22
- package/_types/chains/definitions/celoSepolia.d.ts +22 -22
- package/_types/chains/definitions/codex.d.ts +310 -0
- package/_types/chains/definitions/codex.d.ts.map +1 -0
- package/_types/chains/definitions/codexTestnet.d.ts +310 -0
- package/_types/chains/definitions/codexTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/dchain.d.ts +3 -3
- package/_types/chains/definitions/dchainTestnet.d.ts +3 -3
- package/_types/chains/definitions/elysiumTestnet.d.ts +3 -3
- package/_types/chains/definitions/fraxtal.d.ts +3 -3
- package/_types/chains/definitions/fraxtalTestnet.d.ts +3 -3
- package/_types/chains/definitions/funkiMainnet.d.ts +3 -3
- package/_types/chains/definitions/funkiSepolia.d.ts +3 -3
- package/_types/chains/definitions/garnet.d.ts +3 -3
- package/_types/chains/definitions/giwaSepolia.d.ts +6 -6
- package/_types/chains/definitions/ink.d.ts +3 -3
- package/_types/chains/definitions/inkSepolia.d.ts +3 -3
- package/_types/chains/definitions/lisk.d.ts +3 -3
- package/_types/chains/definitions/liskSepolia.d.ts +3 -3
- package/_types/chains/definitions/metalL2.d.ts +3 -3
- package/_types/chains/definitions/mode.d.ts +3 -3
- package/_types/chains/definitions/modeTestnet.d.ts +3 -3
- package/_types/chains/definitions/optimism.d.ts +3 -3
- package/_types/chains/definitions/optimismGoerli.d.ts +3 -3
- package/_types/chains/definitions/optimismSepolia.d.ts +3 -3
- package/_types/chains/definitions/paseoPassetHub.d.ts +48 -0
- package/_types/chains/definitions/paseoPassetHub.d.ts.map +1 -0
- package/_types/chains/definitions/pgn.d.ts +3 -3
- package/_types/chains/definitions/pgnTestnet.d.ts +3 -3
- package/_types/chains/definitions/playfiAlbireo.d.ts +14 -14
- package/_types/chains/definitions/pyrope.d.ts +3 -3
- package/_types/chains/definitions/redstone.d.ts +3 -3
- package/_types/chains/definitions/rss3.d.ts +3 -3
- package/_types/chains/definitions/rss3Sepolia.d.ts +3 -3
- package/_types/chains/definitions/shape.d.ts +3 -3
- package/_types/chains/definitions/shapeSepolia.d.ts +3 -3
- package/_types/chains/definitions/snax.d.ts +3 -3
- package/_types/chains/definitions/snaxTestnet.d.ts +3 -3
- package/_types/chains/definitions/soneium.d.ts +3 -3
- package/_types/chains/definitions/soneiumMinato.d.ts +3 -3
- package/_types/chains/definitions/sophon.d.ts +14 -14
- package/_types/chains/definitions/sophonTestnet.d.ts +14 -14
- package/_types/chains/definitions/superseed.d.ts +3 -3
- package/_types/chains/definitions/superseedSepolia.d.ts +3 -3
- package/_types/chains/definitions/swellchain.d.ts +3 -3
- package/_types/chains/definitions/swellchainTestnet.d.ts +3 -3
- package/_types/chains/definitions/{tempoTestnet.d.ts → tempoAndantino.d.ts} +34 -34
- package/_types/chains/definitions/tempoAndantino.d.ts.map +1 -0
- package/_types/chains/definitions/tempoDevnet.d.ts +39 -39
- package/_types/chains/definitions/tempoDevnet.d.ts.map +1 -1
- package/_types/chains/definitions/tempoLocalnet.d.ts +28 -28
- package/_types/chains/definitions/tempoModerato.d.ts +916 -0
- package/_types/chains/definitions/{tempoTestnet.d.ts.map → tempoModerato.d.ts.map} +1 -1
- package/_types/chains/definitions/treasure.d.ts +14 -14
- package/_types/chains/definitions/treasureTopaz.d.ts +14 -14
- package/_types/chains/definitions/unichain.d.ts +3 -3
- package/_types/chains/definitions/unichainSepolia.d.ts +3 -3
- package/_types/chains/definitions/worldchain.d.ts +3 -3
- package/_types/chains/definitions/worldchainSepolia.d.ts +3 -3
- package/_types/chains/definitions/zircuit.d.ts +3 -3
- package/_types/chains/definitions/zircuitGarfieldTestnet.d.ts +3 -3
- package/_types/chains/definitions/zircuitTestnet.d.ts +3 -3
- package/_types/chains/definitions/zksync.d.ts +14 -14
- package/_types/chains/definitions/zksyncInMemoryNode.d.ts +14 -14
- package/_types/chains/definitions/zksyncLocalCustomHyperchain.d.ts +14 -14
- package/_types/chains/definitions/zksyncLocalHyperchain.d.ts +14 -14
- package/_types/chains/definitions/zksyncLocalNode.d.ts +14 -14
- package/_types/chains/definitions/zksyncSepoliaTestnet.d.ts +14 -14
- package/_types/chains/definitions/zora.d.ts +3 -3
- package/_types/chains/definitions/zoraSepolia.d.ts +3 -3
- package/_types/chains/definitions/zoraTestnet.d.ts +3 -3
- package/_types/chains/index.d.ts +9 -1
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/index.d.ts +2 -0
- package/_types/index.d.ts.map +1 -1
- package/_types/op-stack/chainConfig.d.ts +3 -3
- package/_types/op-stack/formatters.d.ts +3 -3
- package/_types/tempo/Abis.d.ts +937 -1194
- package/_types/tempo/Abis.d.ts.map +1 -1
- package/_types/tempo/Addresses.d.ts +1 -1
- package/_types/tempo/Addresses.d.ts.map +1 -1
- package/_types/tempo/Decorator.d.ts +91 -85
- package/_types/tempo/Decorator.d.ts.map +1 -1
- package/_types/tempo/actions/amm.d.ts +19 -360
- package/_types/tempo/actions/amm.d.ts.map +1 -1
- package/_types/tempo/actions/dex.d.ts +765 -237
- package/_types/tempo/actions/dex.d.ts.map +1 -1
- package/_types/tempo/actions/fee.d.ts +30 -11
- package/_types/tempo/actions/fee.d.ts.map +1 -1
- package/_types/tempo/actions/nonce.d.ts +0 -105
- package/_types/tempo/actions/nonce.d.ts.map +1 -1
- package/_types/tempo/actions/policy.d.ts +60 -0
- package/_types/tempo/actions/policy.d.ts.map +1 -1
- package/_types/tempo/actions/reward.d.ts +350 -526
- package/_types/tempo/actions/reward.d.ts.map +1 -1
- package/_types/tempo/actions/token.d.ts +368 -1984
- package/_types/tempo/actions/token.d.ts.map +1 -1
- package/_types/tempo/chainConfig.d.ts +15 -16
- package/_types/tempo/chainConfig.d.ts.map +1 -1
- package/_types/tempo/index.d.ts +1 -1
- package/_types/tempo/index.d.ts.map +1 -1
- package/_types/tempo/internal/types.d.ts +1 -1
- package/_types/tempo/internal/types.d.ts.map +1 -1
- package/_types/utils/formatters/transaction.d.ts +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +1 -1
- package/_types/zksync/chainConfig.d.ts +14 -14
- package/_types/zksync/formatters.d.ts +14 -14
- package/account-abstraction/utils/userOperation/toPackedUserOperation.ts +17 -2
- package/actions/wallet/sendTransactionSync.ts +1 -0
- package/chains/definitions/codex.ts +45 -0
- package/chains/definitions/codexTestnet.ts +45 -0
- package/chains/definitions/paseoPassetHub.ts +23 -0
- package/chains/definitions/{tempoTestnet.ts → tempoAndantino.ts} +3 -3
- package/chains/definitions/tempoDevnet.ts +6 -0
- package/chains/definitions/tempoModerato.ts +25 -0
- package/chains/index.ts +10 -1
- package/errors/version.ts +1 -1
- package/index.ts +9 -0
- package/package.json +2 -2
- package/tempo/Abis.ts +607 -752
- package/tempo/Addresses.ts +1 -1
- package/tempo/Decorator.ts +115 -106
- package/tempo/actions/amm.ts +13 -115
- package/tempo/actions/dex.ts +274 -72
- package/tempo/actions/nonce.ts +0 -148
- package/tempo/actions/reward.ts +310 -257
- package/tempo/actions/token.ts +16 -2
- package/tempo/chainConfig.ts +7 -4
- package/tempo/index.ts +1 -1
- package/tempo/internal/types.ts +6 -1
- package/_cjs/chains/definitions/tempoTestnet.js.map +0 -1
- package/_esm/chains/definitions/tempoTestnet.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { concat } from '../../../utils/data/concat.js'
|
|
2
2
|
import { pad } from '../../../utils/data/pad.js'
|
|
3
|
+
import { size } from '../../../utils/data/size.js'
|
|
3
4
|
import { numberToHex } from '../../../utils/index.js'
|
|
4
5
|
import type {
|
|
5
6
|
PackedUserOperation,
|
|
@@ -7,6 +8,9 @@ import type {
|
|
|
7
8
|
} from '../../types/userOperation.js'
|
|
8
9
|
import { getInitCode } from './getInitCode.js'
|
|
9
10
|
|
|
11
|
+
/** Magic suffix for paymaster signature encoding (keccak256("PaymasterSignature")[:8]) */
|
|
12
|
+
const paymasterSignatureMagic = '0x22e325a297439656' as const
|
|
13
|
+
|
|
10
14
|
export type ToPackedUserOperationOptions = {
|
|
11
15
|
/** Prepare the packed user operation for hashing. */
|
|
12
16
|
forHash?: boolean | undefined
|
|
@@ -43,7 +47,10 @@ export function toPackedUserOperation(
|
|
|
43
47
|
])
|
|
44
48
|
const nonce = userOperation.nonce ?? 0n
|
|
45
49
|
|
|
46
|
-
// For v0.9, paymasterSignature can be provided separately and appended after paymasterData
|
|
50
|
+
// For v0.9, paymasterSignature can be provided separately and appended after paymasterData.
|
|
51
|
+
// The encoding uses a magic suffix and length prefix as per ERC-4337 spec:
|
|
52
|
+
// - forHash: just append the magic (signature is not part of hash)
|
|
53
|
+
// - !forHash: append signature + length (2 bytes) + magic
|
|
47
54
|
const paymasterAndData = paymaster
|
|
48
55
|
? concat([
|
|
49
56
|
paymaster,
|
|
@@ -54,7 +61,15 @@ export function toPackedUserOperation(
|
|
|
54
61
|
size: 16,
|
|
55
62
|
}),
|
|
56
63
|
paymasterData || '0x',
|
|
57
|
-
...(paymasterSignature
|
|
64
|
+
...(paymasterSignature
|
|
65
|
+
? options.forHash
|
|
66
|
+
? [paymasterSignatureMagic]
|
|
67
|
+
: [
|
|
68
|
+
paymasterSignature as `0x${string}`,
|
|
69
|
+
pad(numberToHex(size(paymasterSignature)), { size: 2 }),
|
|
70
|
+
paymasterSignatureMagic,
|
|
71
|
+
]
|
|
72
|
+
: []),
|
|
58
73
|
])
|
|
59
74
|
: '0x'
|
|
60
75
|
const preVerificationGas = userOperation.preVerificationGas ?? 0n
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { chainConfig } from '../../op-stack/chainConfig.js'
|
|
2
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
|
3
|
+
|
|
4
|
+
const sourceId = 1 // mainnet
|
|
5
|
+
|
|
6
|
+
export const codex = /*#__PURE__*/ defineChain({
|
|
7
|
+
...chainConfig,
|
|
8
|
+
id: 81224,
|
|
9
|
+
name: 'Codex',
|
|
10
|
+
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
11
|
+
rpcUrls: {
|
|
12
|
+
default: {
|
|
13
|
+
http: ['https://rpc.codex.xyz'],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
blockExplorers: {
|
|
17
|
+
default: {
|
|
18
|
+
name: 'Codex Explorer',
|
|
19
|
+
url: 'https://explorer.codex.xyz',
|
|
20
|
+
apiUrl: 'https://explorer.codex.xyz/api',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
contracts: {
|
|
24
|
+
...chainConfig.contracts,
|
|
25
|
+
disputeGameFactory: {
|
|
26
|
+
[sourceId]: {
|
|
27
|
+
address: '0x6A3855dc26e2beA8Ac73f82Cda79f3808B6C6F6C',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
portal: {
|
|
31
|
+
[sourceId]: {
|
|
32
|
+
address: '0x52759C07A759c81BAab28AE1BE5A19e6450959bD',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
l1StandardBridge: {
|
|
36
|
+
[sourceId]: {
|
|
37
|
+
address: '0xa6b1A05a592719B0C8a70c69eac114C48410aDE4',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
multicall3: {
|
|
41
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
sourceId,
|
|
45
|
+
})
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { chainConfig } from '../../op-stack/chainConfig.js'
|
|
2
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
|
3
|
+
|
|
4
|
+
const sourceId = 11_155_111 // sepolia
|
|
5
|
+
|
|
6
|
+
export const codexTestnet = /*#__PURE__*/ defineChain({
|
|
7
|
+
...chainConfig,
|
|
8
|
+
id: 812242,
|
|
9
|
+
name: 'Codex Testnet',
|
|
10
|
+
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
11
|
+
rpcUrls: {
|
|
12
|
+
default: {
|
|
13
|
+
http: ['https://rpc.codex-stg.xyz'],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
blockExplorers: {
|
|
17
|
+
default: {
|
|
18
|
+
name: 'Codex Testnet Explorer',
|
|
19
|
+
url: 'https://explorer.codex-stg.xyz',
|
|
20
|
+
apiUrl: 'https://explorer.codex-stg.xyz/api',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
contracts: {
|
|
24
|
+
...chainConfig.contracts,
|
|
25
|
+
disputeGameFactory: {
|
|
26
|
+
[sourceId]: {
|
|
27
|
+
address: '0x390e24E8324E56f13A8d48eB938b6f9De24CD205',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
portal: {
|
|
31
|
+
[sourceId]: {
|
|
32
|
+
address: '0x037F161D12c829A9ca4742eEd9371830CA54fcB2',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
l1StandardBridge: {
|
|
36
|
+
[sourceId]: {
|
|
37
|
+
address: '0xCf4df2bDB14C8FDB25FdacCEC10Ce5C4bAEDB3De',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
multicall3: {
|
|
41
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
sourceId,
|
|
45
|
+
})
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
|
2
|
+
|
|
3
|
+
export const paseoPassetHub = /*#__PURE__*/ defineChain({
|
|
4
|
+
id: 420_420_422,
|
|
5
|
+
name: 'Paseo PassetHub',
|
|
6
|
+
nativeCurrency: {
|
|
7
|
+
name: 'PAS',
|
|
8
|
+
symbol: 'PAS',
|
|
9
|
+
decimals: 18,
|
|
10
|
+
},
|
|
11
|
+
rpcUrls: {
|
|
12
|
+
default: {
|
|
13
|
+
http: ['https://testnet-passet-hub-eth-rpc.polkadot.io'],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
blockExplorers: {
|
|
17
|
+
default: {
|
|
18
|
+
name: 'Blockscout',
|
|
19
|
+
url: 'https://blockscout-passet-hub.parity-testnet.parity.io',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
testnet: true,
|
|
23
|
+
})
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { chainConfig } from '../../tempo/chainConfig.js'
|
|
2
2
|
import { defineChain } from '../../utils/chain/defineChain.js'
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const tempoAndantino = /*#__PURE__*/ defineChain({
|
|
5
5
|
...chainConfig,
|
|
6
6
|
id: 42429,
|
|
7
7
|
blockExplorers: {
|
|
8
8
|
default: {
|
|
9
9
|
name: 'Tempo Explorer',
|
|
10
|
-
url: 'https://explore.tempo.xyz',
|
|
10
|
+
url: 'https://explore.testnet.tempo.xyz',
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
|
-
name: 'Tempo Testnet',
|
|
13
|
+
name: 'Tempo Testnet (Andantino)',
|
|
14
14
|
nativeCurrency: {
|
|
15
15
|
name: 'USD',
|
|
16
16
|
symbol: 'USD',
|
|
@@ -5,6 +5,12 @@ export const tempoDevnet = /*#__PURE__*/ defineChain({
|
|
|
5
5
|
...chainConfig,
|
|
6
6
|
id: 31318,
|
|
7
7
|
name: 'Tempo Devnet',
|
|
8
|
+
blockExplorers: {
|
|
9
|
+
default: {
|
|
10
|
+
name: 'Tempo Explorer',
|
|
11
|
+
url: 'https://explore.devnet.tempo.xyz',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
8
14
|
nativeCurrency: {
|
|
9
15
|
name: 'USD',
|
|
10
16
|
symbol: 'USD',
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { chainConfig } from '../../tempo/chainConfig.js'
|
|
2
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
|
3
|
+
|
|
4
|
+
export const tempoModerato = /*#__PURE__*/ defineChain({
|
|
5
|
+
...chainConfig,
|
|
6
|
+
id: 42431,
|
|
7
|
+
blockExplorers: {
|
|
8
|
+
default: {
|
|
9
|
+
name: 'Tempo Explorer',
|
|
10
|
+
url: 'https://explore.moderato.tempo.xyz',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
name: 'Tempo Testnet (Moderato)',
|
|
14
|
+
nativeCurrency: {
|
|
15
|
+
name: 'USD',
|
|
16
|
+
symbol: 'USD',
|
|
17
|
+
decimals: 6,
|
|
18
|
+
},
|
|
19
|
+
rpcUrls: {
|
|
20
|
+
default: {
|
|
21
|
+
http: ['https://rpc.moderato.tempo.xyz'],
|
|
22
|
+
webSocket: ['wss://rpc.moderato.tempo.xyz'],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
})
|
package/chains/index.ts
CHANGED
|
@@ -112,6 +112,8 @@ export { chiliz } from './definitions/chiliz.js'
|
|
|
112
112
|
export { chips } from './definitions/chips.js'
|
|
113
113
|
export { citreaTestnet } from './definitions/citreaTestnet.js'
|
|
114
114
|
export { classic } from './definitions/classic.js'
|
|
115
|
+
export { codex } from './definitions/codex.js'
|
|
116
|
+
export { codexTestnet } from './definitions/codexTestnet.js'
|
|
115
117
|
export { coinbit } from './definitions/coinbit.js'
|
|
116
118
|
export { coinex } from './definitions/coinex.js'
|
|
117
119
|
export { confluxESpace } from './definitions/confluxESpace.js'
|
|
@@ -445,6 +447,7 @@ export { orderlySepolia } from './definitions/orderlySepolia.js'
|
|
|
445
447
|
export { otimDevnet } from './definitions/otimDevnet.js'
|
|
446
448
|
export { palm } from './definitions/palm.js'
|
|
447
449
|
export { palmTestnet } from './definitions/palmTestnet.js'
|
|
450
|
+
export { paseoPassetHub } from './definitions/paseoPassetHub.js'
|
|
448
451
|
export { peaq } from './definitions/peaq.js'
|
|
449
452
|
export { pgn } from './definitions/pgn.js'
|
|
450
453
|
export { pgnTestnet } from './definitions/pgnTestnet.js'
|
|
@@ -615,9 +618,15 @@ export { teaSepolia } from './definitions/teaSepolia.js'
|
|
|
615
618
|
export { telcoinTestnet } from './definitions/telcoinTestnet.js'
|
|
616
619
|
export { telos } from './definitions/telos.js'
|
|
617
620
|
export { telosTestnet } from './definitions/telosTestnet.js'
|
|
621
|
+
export {
|
|
622
|
+
/** @deprecated Use `tempoModerato` instead. */
|
|
623
|
+
tempoAndantino,
|
|
624
|
+
/** @deprecated Use `tempoModerato` instead. */
|
|
625
|
+
tempoAndantino as tempoTestnet,
|
|
626
|
+
} from './definitions/tempoAndantino.js'
|
|
618
627
|
export { tempoDevnet } from './definitions/tempoDevnet.js'
|
|
619
628
|
export { tempoLocalnet } from './definitions/tempoLocalnet.js'
|
|
620
|
-
export {
|
|
629
|
+
export { tempoModerato } from './definitions/tempoModerato.js'
|
|
621
630
|
export { tenet } from './definitions/tenet.js'
|
|
622
631
|
export { ternoa } from './definitions/ternoa.js'
|
|
623
632
|
export { thaiChain } from './definitions/thaiChain.js'
|
package/errors/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.
|
|
1
|
+
export const version = '2.44.1'
|
package/index.ts
CHANGED
|
@@ -39,6 +39,7 @@ export type {
|
|
|
39
39
|
BlockOverrides,
|
|
40
40
|
Rpc as RpcBlockOverrides,
|
|
41
41
|
} from 'ox/BlockOverrides'
|
|
42
|
+
export type { EntryPointVersion } from './account-abstraction/types/entryPointVersion.js'
|
|
42
43
|
export type {
|
|
43
44
|
RpcEstimateUserOperationGasReturnType,
|
|
44
45
|
RpcGetUserOperationByHashReturnType,
|
|
@@ -46,6 +47,14 @@ export type {
|
|
|
46
47
|
RpcUserOperationReceipt,
|
|
47
48
|
RpcUserOperationRequest,
|
|
48
49
|
} from './account-abstraction/types/rpc.js'
|
|
50
|
+
export type {
|
|
51
|
+
EstimateUserOperationGasReturnType,
|
|
52
|
+
GetUserOperationByHashReturnType,
|
|
53
|
+
PackedUserOperation,
|
|
54
|
+
UserOperation,
|
|
55
|
+
UserOperationReceipt,
|
|
56
|
+
UserOperationRequest,
|
|
57
|
+
} from './account-abstraction/types/userOperation.js'
|
|
49
58
|
export type {
|
|
50
59
|
Account,
|
|
51
60
|
AccountSource,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "viem",
|
|
3
3
|
"description": "TypeScript Interface for Ethereum",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.44.1",
|
|
5
5
|
"main": "./_cjs/index.js",
|
|
6
6
|
"module": "./_esm/index.js",
|
|
7
7
|
"types": "./_types/index.d.ts",
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
"@scure/bip39": "1.6.0",
|
|
218
218
|
"abitype": "1.2.3",
|
|
219
219
|
"isows": "1.0.7",
|
|
220
|
-
"ox": "0.11.
|
|
220
|
+
"ox": "0.11.3",
|
|
221
221
|
"ws": "8.18.3"
|
|
222
222
|
},
|
|
223
223
|
"license": "MIT",
|