forked from ensdomains/evmgateway
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add another zksync, add ink, bump blocksmith
- Loading branch information
Showing
15 changed files
with
114 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { OPFaultRollup } from '../../src/op/OPFaultRollup.js'; | ||
import { testOPFault } from './common.js'; | ||
|
||
testOPFault(OPFaultRollup.inkSepoliaConfig, { | ||
// https://explorer-sepolia.inkonchain.com/address/0x0d3e01829E8364DeC0e7475ca06B5c73dbA33ef6?tab=contract | ||
slotDataContract: '0x0d3e01829E8364DeC0e7475ca06B5c73dbA33ef6', | ||
// https://explorer-sepolia.inkonchain.com/address/0x57C2F437E0a5E155ced91a7A17bfc372C0aF7B05?tab=contract | ||
slotDataPointer: '0x57C2F437E0a5E155ced91a7A17bfc372C0aF7B05', | ||
skipCI: true, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { ZKSyncRollup } from '../../src/zksync/ZKSyncRollup.js'; | ||
import { testZKSync } from './common.js'; | ||
|
||
testZKSync(ZKSyncRollup.zeroMainnetConfig, { | ||
// https://zerion-explorer.vercel.app/address/0x1Cd42904e173EA9f7BA05BbB685882Ea46969dEc#contract | ||
slotDataContract: '0x1Cd42904e173EA9f7BA05BbB685882Ea46969dEc', | ||
skipCI: true, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { ZKSyncRollup } from '../../src/zksync/ZKSyncRollup.js'; | ||
import { testZKSync } from './common.js'; | ||
|
||
testZKSync(ZKSyncRollup.sepoliaConfig, { | ||
// https://sepolia.explorer.zksync.io/address/0x1Cd42904e173EA9f7BA05BbB685882Ea46969dEc#contract | ||
slotDataContract: '0x1Cd42904e173EA9f7BA05BbB685882Ea46969dEc', | ||
// https://sepolia.explorer.zksync.io/address/0x8D42501ADE3d0D02033B7FB6FfEa338828a1A467 | ||
slotDataPointer: '0x8D42501ADE3d0D02033B7FB6FfEa338828a1A467', | ||
skipCI: true, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,10 @@ | ||
import { ZKSyncRollup } from '../../src/zksync/ZKSyncRollup.js'; | ||
import { Gateway } from '../../src/gateway.js'; | ||
import { serve } from '@resolverworks/ezccip/serve'; | ||
import { Foundry } from '@adraffy/blocksmith'; | ||
import { createProviderPair, providerURL } from '../providers.js'; | ||
import { setupTests, testName } from './common.js'; | ||
import { describe } from '../bun-describe-fix.js'; | ||
import { afterAll } from 'bun:test'; | ||
import { testZKSync } from './common.js'; | ||
|
||
const config = ZKSyncRollup.mainnetConfig; | ||
describe(testName(config), async () => { | ||
const rollup = new ZKSyncRollup(createProviderPair(config), config); | ||
const foundry = await Foundry.launch({ | ||
fork: providerURL(config.chain1), | ||
infoLog: false, | ||
infiniteCallGas: true, // Blake2s is ~12m gas per proof! | ||
}); | ||
afterAll(foundry.shutdown); | ||
const gateway = new Gateway(rollup); | ||
const ccip = await serve(gateway, { protocol: 'raw', log: false }); | ||
afterAll(ccip.shutdown); | ||
const GatewayVM = await foundry.deploy({ file: 'GatewayVM' }); | ||
const ZKSyncSMT = await foundry.deploy({ file: 'ZKSyncSMT' }); | ||
const hooks = await foundry.deploy({ | ||
file: 'ZKSyncVerifierHooks', | ||
args: [ZKSyncSMT], | ||
}); | ||
const verifier = await foundry.deploy({ | ||
file: 'ZKSyncVerifier', | ||
args: [[ccip.endpoint], rollup.defaultWindow, hooks, rollup.DiamondProxy], | ||
libs: { GatewayVM }, | ||
}); | ||
await setupTests(verifier, { | ||
// https://explorer.zksync.io/address/0x1Cd42904e173EA9f7BA05BbB685882Ea46969dEc#contract | ||
slotDataContract: '0x1Cd42904e173EA9f7BA05BbB685882Ea46969dEc', | ||
}); | ||
testZKSync(ZKSyncRollup.mainnetConfig, { | ||
// https://explorer.zksync.io/address/0x1Cd42904e173EA9f7BA05BbB685882Ea46969dEc#contract | ||
slotDataContract: '0x1Cd42904e173EA9f7BA05BbB685882Ea46969dEc', | ||
// https://explorer.zksync.io/address/0x8D42501ADE3d0D02033B7FB6FfEa338828a1A467#contract | ||
// TODO: enable this after batch 494047 is finalized | ||
//slotDataPointer: '0x8D42501ADE3d0D02033B7FB6FfEa338828a1A467', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters