Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
c0ba7548
Commit
c0ba7548
authored
Mar 09, 2021
by
ben-chain
Committed by
GitHub
Mar 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
split out OVM_Proposer role (#252)
Co-authored-by:
Maurelian
<
maurelian@protonmail.ch
>
parent
093ec7eb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
5 deletions
+8
-5
OVM_StateCommitmentChain.sol
...ptimistic-ethereum/OVM/chain/OVM_StateCommitmentChain.sol
+1
-1
mockOVM_BondManager.sol
...tic-ethereum/mockOVM/verification/mockOVM_BondManager.sol
+1
-1
config.ts
packages/contracts/src/contract-deployment/config.ts
+3
-0
OVM_StateCommitmentChain.spec.ts
...test/contracts/OVM/chain/OVM_StateCommitmentChain.spec.ts
+1
-1
mockOVM_BondManager.spec.ts
...ontracts/mockOVM/verification/mockOVM_BondManager.spec.ts
+2
-2
No files found.
packages/contracts/contracts/optimistic-ethereum/OVM/chain/OVM_StateCommitmentChain.sol
View file @
c0ba7548
...
...
@@ -318,7 +318,7 @@ contract OVM_StateCommitmentChain is iOVM_StateCommitmentChain, Lib_AddressResol
)
internal
{
address sequencer = resolve("OVM_
Sequenc
er");
address sequencer = resolve("OVM_
Propos
er");
(uint40 totalElements, uint40 lastSequencerTimestamp) = _getBatchExtraData();
if (msg.sender == sequencer) {
...
...
packages/contracts/contracts/optimistic-ethereum/mockOVM/verification/mockOVM_BondManager.sol
View file @
c0ba7548
...
...
@@ -69,7 +69,7 @@ contract mockOVM_BondManager is iOVM_BondManager, Lib_AddressResolver {
)
{
// Only authenticate sequencer to submit state root batches.
return _who == resolve("OVM_
Sequenc
er");
return _who == resolve("OVM_
Propos
er");
}
function getGasSpent(
...
...
packages/contracts/src/contract-deployment/config.ts
View file @
c0ba7548
...
...
@@ -141,6 +141,9 @@ export const makeContractDeployConfig = async (
await
_sendTx
(
AddressManager
.
setAddress
(
'
OVM_Sequencer
'
,
sequencerAddress
)
)
await
_sendTx
(
AddressManager
.
setAddress
(
'
OVM_Proposer
'
,
sequencerAddress
)
)
await
_sendTx
(
AddressManager
.
setAddress
(
'
Sequencer
'
,
sequencerAddress
))
},
},
...
...
packages/contracts/test/contracts/OVM/chain/OVM_StateCommitmentChain.spec.ts
View file @
c0ba7548
...
...
@@ -54,7 +54,7 @@ describe('OVM_StateCommitmentChain', () => {
Mock__OVM_BondManager
.
smocked
.
isCollateralized
.
will
.
return
.
with
(
true
)
await
AddressManager
.
setAddress
(
'
OVM_
Sequenc
er
'
,
'
OVM_
Propos
er
'
,
await
sequencer
.
getAddress
()
)
})
...
...
packages/contracts/test/contracts/mockOVM/verification/mockOVM_BondManager.spec.ts
View file @
c0ba7548
...
...
@@ -25,11 +25,11 @@ describe('mockOVM_BondManager', () => {
await
ethers
.
getContractFactory
(
'
mockOVM_BondManager
'
)
).
deploy
(
AddressManager
.
address
)
AddressManager
.
setAddress
(
'
OVM_
Sequenc
er
'
,
await
sequencer
.
getAddress
())
AddressManager
.
setAddress
(
'
OVM_
Propos
er
'
,
await
sequencer
.
getAddress
())
})
describe
(
'
isCollateralized
'
,
()
=>
{
it
(
'
should return true for OVM_
Sequenc
er
'
,
async
()
=>
{
it
(
'
should return true for OVM_
Propos
er
'
,
async
()
=>
{
expect
(
await
mockOVM_BondManager
.
isCollateralized
(
await
sequencer
.
getAddress
())
).
to
.
equal
(
true
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment