Options
All
  • Public
  • Public/Protected
  • All
Menu

Module skylight

Skylight logic

A skylight is the thing you use to talk to a superhero

By default, Skylight is autistic and only does exactly what you tell it to do. Making a new Skylight only populates the state record with the default values. Doesn't even attempt to talk to Superhero.

In other words, the default behavior is "do what I say". You probably want "do what I mean" behavior. This is where Skylight does all the things you would normlly expect it do do, which is establish a connection with the Superhero wallet and get the user's public key.

In that case, you probably want to do something like this

 import * as skylight from './skylight.js'

async function main()
{
// dwim = do what I mean
let my_skylight = await skylight.dwim();
console.log(my_skylight);
}

Index

Classes

Type aliases

Functions

Type aliases

Tx: { tx: string }

Type declaration

  • tx: string

Functions

Generated using TypeDoc