Apps

Defines:

public struct App has key {
        id: UID,
        name: String
}
public struct AppRegistry has key, store {
        id: UID,
        registry: Table<String, address>
}

Add Fee Config

The add_fee_config function has these effects:

  1. Creates a dynamic field on the App with a specified fee config

Create

The create function has these effects:

  1. Create an App

  2. Adds the App name to the AppRegistry

  3. Shares the App

  4. Returns the App address

Get Address

The get_address function has these effects:

  1. Returns the address of the App

Get Name

The get_name function has these effects:

  1. Returns the String name of the App

Has Record

The has_record function has these effects:

  1. Returns boolean if the String key exists in the AppRegistry table

Last updated