basic grids demo seems to work...
This commit is contained in:
Vendored
+29
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Title: GRIDS Basic Page Script
|
||||
* Description: Page Script for /grids-basic.html
|
||||
* Author: Peter Harpending <peterharpending@qpq.swiss>
|
||||
* Date: 2025-12-29
|
||||
* Last-Updated: 2025-12-29
|
||||
*
|
||||
* @module
|
||||
*/
|
||||
/**
|
||||
* Runs on page load
|
||||
*/
|
||||
declare function main(): Promise<void>;
|
||||
declare function on_submit(n_input: HTMLInputElement, r_input: HTMLInputElement, a_input: HTMLInputElement, p_input: HTMLInputElement, grids_url_elt: HTMLTextAreaElement, grids_png_elt: HTMLImageElement): Promise<void>;
|
||||
type Safe<t> = {
|
||||
ok: true;
|
||||
result: t;
|
||||
} | {
|
||||
ok: false;
|
||||
error: string;
|
||||
};
|
||||
type GridsResult = {
|
||||
url: string;
|
||||
png_base64: string;
|
||||
};
|
||||
/**
|
||||
* gets the grids url
|
||||
*/
|
||||
declare function grids_request(net_id: string, recipient: string, amount: number, payload: string): Promise<Safe<GridsResult>>;
|
||||
Reference in New Issue
Block a user