Add minter and burner python interface and test code

This commit is contained in:
lash
2023-06-06 15:27:41 +01:00
parent 220b8afbeb
commit ef3ee7caf0
20 changed files with 354 additions and 9 deletions

View File

@@ -0,0 +1,29 @@
# standard imports
import unittest
import logging
import os
from chainlib.eth.nonce import RPCNonceOracle
from chainlib.eth.tx import receipt
from eth_erc20 import ERC20
from giftable_erc20_token import GiftableToken
from eth_interface.unittest import TestERC165
# local imports
from eth_burner import EthBurner
from eth_burner.unittest import TestEthBurnerInterface
from eth_burner.unittest.base import TestEthBurner
logging.basicConfig(level=logging.DEBUG)
logg = logging.getLogger()
class TestBurnerBase(TestEthBurner, TestEthBurnerInterface, TestERC165):
def setUp(self):
super(TestBurnerBase, self).setUp()
self.add_interface_check('bc4babdd')
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,29 @@
# standard imports
import unittest
import logging
import os
from chainlib.eth.nonce import RPCNonceOracle
from chainlib.eth.tx import receipt
from eth_erc20 import ERC20
from giftable_erc20_token import GiftableToken
from eth_interface.unittest import TestERC165
# local imports
from eth_minter import EthMinter
from eth_minter.unittest import TestEthMinterInterface
from eth_minter.unittest.base import TestEthMinter
logging.basicConfig(level=logging.DEBUG)
logg = logging.getLogger()
class TestMinterBase(TestEthMinter, TestEthMinterInterface, TestERC165):
def setUp(self):
super(TestMinterBase, self).setUp()
self.add_interface_check('5878bcf4')
if __name__ == '__main__':
unittest.main()