#flows #native #block #flow #networking #address #blocknative

blocknative-flows

Block Native extension for flows.network

3 releases

0.1.2 Feb 1, 2023
0.1.1 Jan 31, 2023
0.1.0 Jan 31, 2023

#32 in #flows

38 downloads per month

MIT/Apache

8KB
141 lines

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.

Dependencies

~1.2–2MB
~45K SLoC