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:
Creates a dynamic field on the App with a specified fee config
Create
The create
function has these effects:
Create an App
Adds the App name to the AppRegistry
Shares the App
Returns the App address
Get Address
The get_address
function has these effects:
Returns the address of the App
Get Name
The get_name
function has these effects:
Returns the String name of the App
Has Record
The has_record
function has these effects:
Returns boolean if the String key exists in the AppRegistry table
Last updated