blocknative-flows

Crates.ioblocknative-flows
lib.rsblocknative-flows
version0.1.2
sourcesrc
created_at2023-01-31 10:39:07.664644
updated_at2023-02-01 08:23:00.816449
descriptionBlock Native extension for flows.network
homepage
repository
max_upload_size
id772581
size7,373
DarumaDocker!! (DarumaDocker)

documentation

https://docs.rs/blocknative-flows

README

This is a library for integrating Block Native in your flow function for test.flows.network.

Example usage

use blocknative_flows::listen_to_address;
use slack_flows::send_message_to_channel;

#[no_mangle]
pub fn run() {
    let address = "0xC8a8f0C656D21bd619FB06904626255af19663ff";

    listen_to_address(address, |bnm| {
        send_message_to_channel("ham-5b68442", "general", bnm.hash);
    });
}

In run() the listen_to_address will create a listener for new event from address: 0xC8a8f0C656D21bd619FB06904626255af19663ff.

The send_message_to_channel is from slack-flows

The whole document is here.

Commit count: 0

cargo fmt