dbot-server/dbot/service.py
def generate_headers(self, price: int):
        assert price > 0
        """Generate basic headers that are sent back for every request"""
        headers = {
            HTTPHeaders.GATEWAY_PATH: constants.API_PATH,
            HTTPHeaders.RECEIVER_ADDRESS: self.receiver_address,
            HTTPHeaders.CONTRACT_ADDRESS: self.contract_address,
            HTTPHeaders.PRICE: price,
            'Content-Type': 'application/json'
        }
        return headers
Generate basic headers that are sent back for every request
Generate basic headers that are sent back for every request
Generate basic headers that are sent back for every request
def generate_headers(self, price: int):
        assert price > 0
        headers = {
            HTTPHeaders.GATEWAY_PATH: constants.API_PATH,
            HTTPHeaders.RECEIVER_ADDRESS: self.receiver_address,
            HTTPHeaders.CONTRACT_ADDRESS: self.contract_address,
            HTTPHeaders.PRICE: price,
            'Content-Type': 'application/json'
        }
        return headers
def generate_headers ( self , price : int ) : assert price > 0 headers = { HTTPHeaders . GATEWAY_PATH : constants . API_PATH , HTTPHeaders . RECEIVER_ADDRESS : self . receiver_address , HTTPHeaders . CONTRACT_ADDRESS : self . contract_address , HTTPHeaders . PRICE : price , 'Content-Type' : 'application/json' } return headers
Generate basic headers that are sent back for every request
Generate basic headers that are sent back for every request
"""Generate basic headers that are sent back for every request"""
self
price
int