cic-contracts/python/cic_contracts/writer.py

18 lines
595 B
Python
Raw Normal View History

2021-11-13 07:06:52 +01:00
# external imports
from chainlib.eth.tx import (
TxFactory,
TxFormat,
)
# local imports
from .base import CICTxHelper
class CICWriter(CICTxHelper):
def add_writer(self, contract_address, sender_address, address, tx_format=TxFormat.JSONRPC):
return self.single_address_method('addWriter', contract_address, sender_address, address, tx_format)
def delete_writer(self, contract_address, sender_address, address, tx_format=TxFormat.JSONRPC):
return self.single_address_method('deleteWriter', contract_address, sender_address, address, tx_format)