Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce zksync bridges utility functions #2667

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
eefe1eb
fix: tests
jxom Apr 10, 2024
0a4f3b9
Merge branch 'wevm:main' into main
kiriyaga Apr 11, 2024
ba85c6d
Merge branch 'wevm:main' into main
kiriyaga-txfusion Apr 15, 2024
1150938
Merge branch 'wevm:main' into main
kiriyaga-txfusion Apr 18, 2024
90a139c
Merge branch 'wevm:main' into main
kiriyaga-txfusion May 6, 2024
3d4c095
Merge branch 'wevm:main' into main
nikola-bozin-txfusion May 9, 2024
b4bd301
Merge branch 'wevm:main' into main
nikola-bozin-txfusion May 14, 2024
f16e19f
Merge branch 'wevm:main' into main
nikola-bozin-txfusion May 17, 2024
339431b
Merge branch 'wevm:main' into main
nikola-bozin-txfusion May 20, 2024
fab5f9f
Merge branch 'wevm:main' into main
nikola-bozin-txfusion May 21, 2024
f5765ce
Merge branch 'wevm:main' into main
nikola-bozin-txfusion May 22, 2024
3db392e
Merge branch 'wevm:main' into main
nikola-bozin-txfusion May 23, 2024
b909845
Merge branch 'wevm:main' into main
nikola-bozin-txfusion May 24, 2024
65699e9
Merge branch 'wevm:main' into main
nikola-bozin-txfusion May 25, 2024
86f866b
Merge branch 'wevm:main' into main
nikola-bozin-txfusion May 28, 2024
a0bdb5a
Merge branch 'wevm:main' into main
nikola-bozin-txfusion Jun 3, 2024
4cc270e
Merge branch 'wevm:main' into main
nikola-bozin-txfusion Jun 9, 2024
78d86b6
Merge branch 'wevm:main' into main
nikola-bozin-txfusion Jun 11, 2024
31aa415
Merge branch 'wevm:main' into main
nikola-bozin-txfusion Jun 12, 2024
4bd933d
Merge branch 'wevm:main' into main
nikola-bozin-txfusion Jun 14, 2024
86c6d16
Merge branch 'wevm:main' into main
nikola-bozin-txfusion Jun 21, 2024
544a9ca
Merge branch 'wevm:main' into main
nikola-bozin-txfusion Jun 26, 2024
56a3aa8
Merge branch 'wevm:main' into main
nikola-bozin-txfusion Jun 27, 2024
6f9767a
Merge branch 'wevm:main' into main
nikola-bozin-txfusion Jun 28, 2024
6257b0c
Merge branch 'wevm:main' into main
nikola-bozin-txfusion Jun 30, 2024
a28402d
Merge branch 'wevm:main' into main
nikola-bozin-txfusion Jul 23, 2024
5e1c806
Merge branch 'wevm:main' into main
nikola-bozin-txfusion Aug 8, 2024
6663a7c
feat: add bridge utility functions
nikola-bozin-txfusion Aug 28, 2024
ca4040b
Merge branch 'wevm:main' into main
nikola-bozin-txfusion Aug 29, 2024
5c04dde
Merge branch 'main' of github-txfusion:txfusion/viem into nikola-bozi…
nikola-bozin-txfusion Aug 29, 2024
101f3e1
Merge branch 'wevm:main' into main
nikola-bozin-txfusion Sep 11, 2024
eef6b50
Merge branch 'main' of github-txfusion:txfusion/viem into nikola-bozi…
nikola-bozin-txfusion Sep 11, 2024
4b219e1
chore: refactor code
nikola-bozin-txfusion Sep 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added bun.lockb
Binary file not shown.
14 changes: 14 additions & 0 deletions src/chains/definitions/zkLocalChainL1.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const zkLocalChainL1 = /*#__PURE__*/ defineChain({
id: 9,
name: 'zkSync CLI Local Hyperchain L1',
network: 'zksync-cli-local-hyperchain-l1',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['http://localhost:15045'],
},
},
testnet: true,
})
16 changes: 16 additions & 0 deletions src/chains/definitions/zkLocalChainL2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { defineChain } from '../../utils/chain/defineChain.js'
import { chainConfig } from '../../zksync/chainConfig.js'

export const zkLocalChainL2 = /*#__PURE__*/ defineChain({
...chainConfig,
id: 270,
name: 'zkSync CLI Local Hyperchain',
network: 'zksync-cli-local-hyperchain',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['http://localhost:15100'],
},
},
testnet: true,
})
16 changes: 16 additions & 0 deletions src/chains/definitions/zkLocalChainL3.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { defineChain } from '../../utils/chain/defineChain.js'
import { chainConfig } from '../../zksync/chainConfig.js'

export const zkLocalChainL3 = /*#__PURE__*/ defineChain({
...chainConfig,
id: 272,
name: 'zkSync CLI Local Hyperchain',
network: 'zksync-cli-local-hyperchain',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['http://localhost:15200'],
},
},
testnet: true,
})
14 changes: 14 additions & 0 deletions src/chains/definitions/zkSyncLocalNodeL1.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { defineChain } from '../utils.js'

export const zkSyncLocalNodeL1 = /*#__PURE__*/ defineChain({
id: 9,
name: 'zkSync CLI Local Node L1',
network: 'zksync-cli-local-node',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['http://localhost:8545'],
},
},
testnet: true,
})
Loading
Loading