Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const iterLogs = (options?: SmartContractIterOptions): AsyncIterable =>
AsyncIterableX.from(iterActions(options)).pipe(
map((action) => {
if (action.type === 'Event') {
return undefined;
}
return action;
}),
filter(utils.notNull),
filter(Boolean),
);
const iterLogs = (actionFilter?: BlockFilter): AsyncIterable =>
AsyncIterableX.from(iterActions(actionFilter)).pipe(
map((action) => {
if (action.type === 'Event') {
return undefined;
}
return action;
}),
filter(Boolean),
);
const iterActionsRaw = ({
network = client.getCurrentNetwork(),
...iterOptions
}: SmartContractIterOptions = {}): AsyncIterable =>
AsyncIterableX.from(client.__iterActionsRaw(network, iterOptions)).pipe(
filter((action) => action.address === definition.networks[network].address),
);
const iterLogs = (options?: SmartContractIterOptions): AsyncIterable =>
AsyncIterableX.from(iterActions(options)).pipe(
map((action) => {
if (action.type === 'Event') {
return undefined;
}
return action;
}),
filter(utils.notNull),
filter(Boolean),
);
const iterActionsRaw = (blockFilter: BlockFilter = {}): AsyncIterable =>
AsyncIterableX.from(client.__iterActionsRaw(blockFilter)).pipe(filter((action) => action.address === address));