Skip to content

clean RequestCoreService.getRequestsByAddress data #16

@ghost

Description

RequestCoreService.getRequestsByAddress isn't complete yet, still need to clean the data, which consists of adding timestamp to each request

The original typescript can be found here so I imagine the python would be something like

for payee in eventsCorePayee:
    payee['_meta] = {
        'blockNumber': payee['blockNumber'],
        'timestamp': self._web3Single.getBlockTimestamp(payee['blockNumber']),
        'requestId': payee['returnValues']['requestId']
    }

# and same for eventsCorePayer

Not entirely sure what self._instanceRequestCore.getPastEvents() returns (dictionary or data structure)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions