Posts

Defines:

public struct Posts has store {
    posts: Table<u64, address>
}

Add

The addfunction has these effects:

  1. Adds the post timestamp - post address key/value pair to the table.

Create

The create function has these effects:

  1. Creates and returns a new Posts table.

Get Length

The get_length function has these effects:

  1. Returns u64 length of the Posts table

Has Record

The has_record function has these effects:

  1. Returns boolean if the timestamp exists in the Posts table

Last updated