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
c56e4d42
Commit
c56e4d42
authored
Apr 20, 2021
by
Liam Horne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: remove unused function
parent
2dd79f70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
17 deletions
+1
-17
sequencer-batch.ts
packages/core-utils/src/coders/sequencer-batch.ts
+1
-17
No files found.
packages/core-utils/src/coders/sequencer-batch.ts
View file @
c56e4d42
import
{
add0x
,
remove0x
,
encodeHex
}
from
'
../common
'
import
{
add0x
,
remove0x
,
encodeHex
}
from
'
../common
'
import
{
Contract
,
BigNumber
,
ethers
}
from
'
ethers
'
import
{
BigNumber
,
ethers
}
from
'
ethers
'
import
{
keccak256
}
from
'
ethers/lib/utils
'
import
{
TransactionResponse
}
from
'
@ethersproject/abstract-provider
'
export
interface
BatchContext
{
export
interface
BatchContext
{
numSequencedTransactions
:
number
numSequencedTransactions
:
number
...
@@ -23,20 +21,6 @@ export interface AppendSequencerBatchParams {
...
@@ -23,20 +21,6 @@ export interface AppendSequencerBatchParams {
const
APPEND_SEQUENCER_BATCH_METHOD_ID
=
'
appendSequencerBatch()
'
const
APPEND_SEQUENCER_BATCH_METHOD_ID
=
'
appendSequencerBatch()
'
const
appendSequencerBatch
=
async
(
OVM_CanonicalTransactionChain
:
Contract
,
batch
:
AppendSequencerBatchParams
):
Promise
<
TransactionResponse
>
=>
{
const
methodId
=
keccak256
(
Buffer
.
from
(
APPEND_SEQUENCER_BATCH_METHOD_ID
)
).
slice
(
2
,
10
)
const
calldata
=
encodeAppendSequencerBatch
(
batch
)
return
OVM_CanonicalTransactionChain
.
signer
.
sendTransaction
({
to
:
OVM_CanonicalTransactionChain
.
address
,
data
:
'
0x
'
+
methodId
+
calldata
,
})
}
export
const
encodeAppendSequencerBatch
=
(
export
const
encodeAppendSequencerBatch
=
(
b
:
AppendSequencerBatchParams
b
:
AppendSequencerBatchParams
):
string
=>
{
):
string
=>
{
...
...
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