9
apps/cic-eth/tests/util/gas.py
Normal file
9
apps/cic-eth/tests/util/gas.py
Normal file
@@ -0,0 +1,9 @@
|
||||
class StaticGasOracle:
|
||||
|
||||
def __init__(self, price, limit):
|
||||
self.price = price
|
||||
self.limit = limit
|
||||
|
||||
|
||||
def get_gas(self):
|
||||
return (self.price, self.limit)
|
||||
12
apps/cic-eth/tests/util/nonce.py
Normal file
12
apps/cic-eth/tests/util/nonce.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# external imports
|
||||
from chainlib.eth.nonce import OverrideNonceOracle
|
||||
from chainlib.eth.constant import ZERO_ADDRESS
|
||||
|
||||
|
||||
class StaticNonceOracle(OverrideNonceOracle):
|
||||
|
||||
def __init__(self, nonce):
|
||||
super(StaticNonceOracle, self).__init__(ZERO_ADDRESS, nonce)
|
||||
|
||||
def next_nonce(self):
|
||||
return self.nonce
|
||||
Reference in New Issue
Block a user