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
9cd5df79
Unverified
Commit
9cd5df79
authored
Dec 09, 2021
by
smartcontracts
Committed by
GitHub
Dec 09, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1905 from ethereum-optimism/sc/cc-erc20-pair-scaffold
feat: CrossChainERC20Pair test scaffold
parents
9cb0af22
66dc4d68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
132 additions
and
0 deletions
+132
-0
cross-chain-erc20-pair.spec.ts
packages/sdk/test/cross-chain-erc20-pair.spec.ts
+132
-0
No files found.
packages/sdk/test/cross-chain-erc20-pair.spec.ts
0 → 100644
View file @
9cd5df79
/* eslint-disable @typescript-eslint/no-empty-function */
import
'
./setup
'
describe
(
'
CrossChainERC20Pair
'
,
()
=>
{
describe
(
'
construction
'
,
()
=>
{
it
(
'
should have a messenger
'
,
()
=>
{})
describe
(
'
when only an L1 token is provided
'
,
()
=>
{
describe
(
'
when the token is a standard bridge token
'
,
()
=>
{
it
(
'
should resolve an L2 token from the token list
'
,
()
=>
{})
})
describe
(
'
when the token is ETH
'
,
()
=>
{
it
(
'
should resolve the L2 ETH token address
'
,
()
=>
{})
})
describe
(
'
when the token is SNX
'
,
()
=>
{
it
(
'
should resolve the L2 SNX token address
'
,
()
=>
{})
})
describe
(
'
when the token is DAI
'
,
()
=>
{
it
(
'
should resolve the L2 DAI token address
'
,
()
=>
{})
})
describe
(
'
when the token is not a standard token or a special token
'
,
()
=>
{
it
(
'
should throw an error
'
,
()
=>
{})
})
})
describe
(
'
when only an L2 token is provided
'
,
()
=>
{
describe
(
'
when the token is a standard bridge token
'
,
()
=>
{
it
(
'
should resolve an L1 token from the token list
'
,
()
=>
{})
})
describe
(
'
when the token is ETH
'
,
()
=>
{
it
(
'
should resolve the L1 ETH token address
'
,
()
=>
{})
})
describe
(
'
when the token is SNX
'
,
()
=>
{
it
(
'
should resolve the L1 SNX token address
'
,
()
=>
{})
})
describe
(
'
when the token is DAI
'
,
()
=>
{
it
(
'
should resolve the L1 DAI token address
'
,
()
=>
{})
})
describe
(
'
when the token is not a standard token or a special token
'
,
()
=>
{
it
(
'
should throw an error
'
,
()
=>
{})
})
})
describe
(
'
when both an L1 token and an L2 token are provided
'
,
()
=>
{
it
(
'
should attach both instances
'
,
()
=>
{})
})
describe
(
'
when neither an L1 token or an L2 token are provided
'
,
()
=>
{
it
(
'
should throw an error
'
,
()
=>
{})
})
})
describe
(
'
deposit
'
,
()
=>
{
describe
(
'
when the user has enough balance and allowance
'
,
()
=>
{
describe
(
'
when the token is a standard bridge token
'
,
()
=>
{
it
(
'
should trigger a token deposit
'
,
()
=>
{})
})
describe
(
'
when the token is ETH
'
,
()
=>
{
it
(
'
should trigger a token deposit
'
,
()
=>
{})
})
describe
(
'
when the token is SNX
'
,
()
=>
{
it
(
'
should trigger a token deposit
'
,
()
=>
{})
})
describe
(
'
when the token is DAI
'
,
()
=>
{
it
(
'
should trigger a token deposit
'
,
()
=>
{})
})
})
describe
(
'
when the user does not have enough balance
'
,
()
=>
{
it
(
'
should throw an error
'
,
()
=>
{})
})
describe
(
'
when the user has not given enough allowance to the bridge
'
,
()
=>
{
it
(
'
should throw an error
'
,
()
=>
{})
})
})
describe
(
'
withdraw
'
,
()
=>
{
describe
(
'
when the user has enough balance
'
,
()
=>
{
describe
(
'
when the token is a standard bridge token
'
,
()
=>
{
it
(
'
should trigger a token withdrawal
'
,
()
=>
{})
})
describe
(
'
when the token is ETH
'
,
()
=>
{
it
(
'
should trigger a token withdrawal
'
,
()
=>
{})
})
describe
(
'
when the token is SNX
'
,
()
=>
{
it
(
'
should trigger a token withdrawal
'
,
()
=>
{})
})
describe
(
'
when the token is DAI
'
,
()
=>
{
it
(
'
should trigger a token withdrawal
'
,
()
=>
{})
})
})
describe
(
'
when the user does not have enough balance
'
,
()
=>
{
it
(
'
should throw an error
'
,
()
=>
{})
})
})
describe
(
'
populateTransaction
'
,
()
=>
{
describe
(
'
deposit
'
,
()
=>
{
it
(
'
should populate the transaction with the correct values
'
,
()
=>
{})
})
describe
(
'
withdraw
'
,
()
=>
{
it
(
'
should populate the transaction with the correct values
'
,
()
=>
{})
})
})
describe
(
'
estimateGas
'
,
()
=>
{
describe
(
'
estimateGas
'
,
()
=>
{
it
(
'
should estimate gas required for the transaction
'
,
()
=>
{})
})
describe
(
'
estimateGas
'
,
()
=>
{
it
(
'
should estimate gas required for the transaction
'
,
()
=>
{})
})
})
})
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