Skip to content

Commit ccdf9a0

Browse files
authored
feat(tempo): export validator V2 address (#4873)
* feat(tempo): export validator v2 address * chore: add validator v2 address changeset
1 parent 22a68a4 commit ccdf9a0

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'viem': patch
3+
---
4+
5+
Added `Addresses.validatorV2` for the Tempo Validator Config V2 precompile.

src/tempo/Addresses.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { expect, test } from 'vitest'
2+
import * as Addresses from './Addresses.js'
3+
4+
test('validator addresses', () => {
5+
expect(Addresses.validator).toBe('0xcccccccc00000000000000000000000000000000')
6+
expect(Addresses.validatorV2).toBe(
7+
'0xcccccccc00000000000000000000000000000001',
8+
)
9+
})

src/tempo/Addresses.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ export const tip20ChannelReserve = '0x4d50500000000000000000000000000000000000'
1414
export const tip20Factory = '0x20fc000000000000000000000000000000000000'
1515
export const tip403Registry = '0x403c000000000000000000000000000000000000'
1616
export const validator = '0xcccccccc00000000000000000000000000000000'
17+
export const validatorV2 = '0xcccccccc00000000000000000000000000000001'
1718
export const zoneOutbox = '0x1c00000000000000000000000000000000000002'

0 commit comments

Comments
 (0)