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
70fd8913
Unverified
Commit
70fd8913
authored
Feb 01, 2023
by
Mark Tyneway
Committed by
GitHub
Feb 01, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4813 from ethereum-optimism/fix/remove-hh-dripcheck-tests
ctp: delete hh dripcheck tests
parents
3b57d474
8779ae6b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
168 deletions
+0
-168
package.json
packages/contracts-periphery/package.json
+0
-1
CheckBalanceHigh.spec.ts
...cts/universal/drippie/dripchecks/CheckBalanceHigh.spec.ts
+0
-51
CheckBalanceLow.spec.ts
...acts/universal/drippie/dripchecks/CheckBalanceLow.spec.ts
+0
-51
CheckGelatoLow.spec.ts
...racts/universal/drippie/dripchecks/CheckGelatoLow.spec.ts
+0
-48
CheckTrue.spec.ts
.../contracts/universal/drippie/dripchecks/CheckTrue.spec.ts
+0
-17
No files found.
packages/contracts-periphery/package.json
View file @
70fd8913
...
...
@@ -54,7 +54,6 @@
"url"
:
"https://github.com/ethereum-optimism/optimism.git"
},
"devDependencies"
:
{
"@defi-wonderland/smock"
:
"^2.0.7"
,
"@eth-optimism/contracts-bedrock"
:
"0.11.3"
,
"@eth-optimism/core-utils"
:
"^0.12.0"
,
"@eth-optimism/hardhat-deploy-config"
:
"^0.2.5"
,
...
...
packages/contracts-periphery/test/contracts/universal/drippie/dripchecks/CheckBalanceHigh.spec.ts
deleted
100644 → 0
View file @
3b57d474
import
hre
from
'
hardhat
'
import
{
Contract
}
from
'
ethers
'
import
{
toRpcHexString
}
from
'
@eth-optimism/core-utils
'
import
{
expect
}
from
'
../../../../setup
'
import
{
deploy
}
from
'
../../../../helpers
'
import
{
encodeDripCheckParams
}
from
'
../../../../../src
'
describe
(
'
CheckBalanceHigh
'
,
()
=>
{
const
RECIPIENT
=
'
0x
'
+
'
11
'
.
repeat
(
20
)
const
THRESHOLD
=
100
let
CheckBalanceHigh
:
Contract
before
(
async
()
=>
{
CheckBalanceHigh
=
await
deploy
(
'
CheckBalanceHigh
'
)
})
describe
(
'
check
'
,
()
=>
{
it
(
'
should return true when balance is above threshold
'
,
async
()
=>
{
await
hre
.
ethers
.
provider
.
send
(
'
hardhat_setBalance
'
,
[
RECIPIENT
,
toRpcHexString
(
THRESHOLD
+
1
),
])
expect
(
await
CheckBalanceHigh
.
check
(
encodeDripCheckParams
(
CheckBalanceHigh
.
interface
,
{
target
:
RECIPIENT
,
threshold
:
THRESHOLD
,
})
)
).
to
.
equal
(
true
)
})
it
(
'
should return false when balance is below threshold
'
,
async
()
=>
{
await
hre
.
ethers
.
provider
.
send
(
'
hardhat_setBalance
'
,
[
RECIPIENT
,
toRpcHexString
(
THRESHOLD
-
1
),
])
expect
(
await
CheckBalanceHigh
.
check
(
encodeDripCheckParams
(
CheckBalanceHigh
.
interface
,
{
target
:
RECIPIENT
,
threshold
:
THRESHOLD
,
})
)
).
to
.
equal
(
false
)
})
})
})
packages/contracts-periphery/test/contracts/universal/drippie/dripchecks/CheckBalanceLow.spec.ts
deleted
100644 → 0
View file @
3b57d474
import
hre
from
'
hardhat
'
import
{
Contract
}
from
'
ethers
'
import
{
toRpcHexString
}
from
'
@eth-optimism/core-utils
'
import
{
expect
}
from
'
../../../../setup
'
import
{
deploy
}
from
'
../../../../helpers
'
import
{
encodeDripCheckParams
}
from
'
../../../../../src
'
describe
(
'
CheckBalanceLow
'
,
()
=>
{
const
RECIPIENT
=
'
0x
'
+
'
11
'
.
repeat
(
20
)
const
THRESHOLD
=
100
let
CheckBalanceLow
:
Contract
before
(
async
()
=>
{
CheckBalanceLow
=
await
deploy
(
'
CheckBalanceLow
'
)
})
describe
(
'
check
'
,
()
=>
{
it
(
'
should return true when balance is below threshold
'
,
async
()
=>
{
await
hre
.
ethers
.
provider
.
send
(
'
hardhat_setBalance
'
,
[
RECIPIENT
,
toRpcHexString
(
THRESHOLD
-
1
),
])
expect
(
await
CheckBalanceLow
.
check
(
encodeDripCheckParams
(
CheckBalanceLow
.
interface
,
{
target
:
RECIPIENT
,
threshold
:
THRESHOLD
,
})
)
).
to
.
equal
(
true
)
})
it
(
'
should return false when balance is above threshold
'
,
async
()
=>
{
await
hre
.
ethers
.
provider
.
send
(
'
hardhat_setBalance
'
,
[
RECIPIENT
,
toRpcHexString
(
THRESHOLD
+
1
),
])
expect
(
await
CheckBalanceLow
.
check
(
encodeDripCheckParams
(
CheckBalanceLow
.
interface
,
{
target
:
RECIPIENT
,
threshold
:
THRESHOLD
,
})
)
).
to
.
equal
(
false
)
})
})
})
packages/contracts-periphery/test/contracts/universal/drippie/dripchecks/CheckGelatoLow.spec.ts
deleted
100644 → 0
View file @
3b57d474
import
{
Contract
}
from
'
ethers
'
import
{
smock
,
FakeContract
}
from
'
@defi-wonderland/smock
'
import
{
expect
}
from
'
../../../../setup
'
import
{
deploy
}
from
'
../../../../helpers
'
import
{
encodeDripCheckParams
}
from
'
../../../../../src
'
describe
(
'
CheckGelatoLow
'
,
()
=>
{
const
RECIPIENT
=
'
0x
'
+
'
11
'
.
repeat
(
20
)
const
THRESHOLD
=
100
let
CheckGelatoLow
:
Contract
let
FakeGelatoTresury
:
FakeContract
<
Contract
>
before
(
async
()
=>
{
CheckGelatoLow
=
await
deploy
(
'
CheckGelatoLow
'
)
FakeGelatoTresury
=
await
smock
.
fake
(
'
IGelatoTreasury
'
)
})
describe
(
'
check
'
,
()
=>
{
it
(
'
should return true when balance is below threshold
'
,
async
()
=>
{
FakeGelatoTresury
.
userTokenBalance
.
returns
(
THRESHOLD
-
1
)
expect
(
await
CheckGelatoLow
.
check
(
encodeDripCheckParams
(
CheckGelatoLow
.
interface
,
{
treasury
:
FakeGelatoTresury
.
address
,
threshold
:
THRESHOLD
,
recipient
:
RECIPIENT
,
})
)
).
to
.
equal
(
true
)
})
it
(
'
should return false when balance is above threshold
'
,
async
()
=>
{
FakeGelatoTresury
.
userTokenBalance
.
returns
(
THRESHOLD
+
1
)
expect
(
await
CheckGelatoLow
.
check
(
encodeDripCheckParams
(
CheckGelatoLow
.
interface
,
{
treasury
:
FakeGelatoTresury
.
address
,
threshold
:
THRESHOLD
,
recipient
:
RECIPIENT
,
})
)
).
to
.
equal
(
false
)
})
})
})
packages/contracts-periphery/test/contracts/universal/drippie/dripchecks/CheckTrue.spec.ts
deleted
100644 → 0
View file @
3b57d474
import
{
Contract
}
from
'
ethers
'
import
{
expect
}
from
'
../../../../setup
'
import
{
deploy
}
from
'
../../../../helpers
'
describe
(
'
CheckTrue
'
,
()
=>
{
let
CheckTrue
:
Contract
before
(
async
()
=>
{
CheckTrue
=
await
deploy
(
'
CheckTrue
'
)
})
describe
(
'
check
'
,
()
=>
{
it
(
'
should return true
'
,
async
()
=>
{
expect
(
await
CheckTrue
.
check
(
'
0x
'
)).
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