asastats-wallet-frontend / main / App
Class: App
Defined in: main.ts:16
Bootstraps the wallet-connect experience on the ASA Stats authorize page.
Initializes only when wallet card elements are present, fetches the list of
supported wallets from the backend, builds a mainnet WalletManager, binds a
WalletComponent per wallet, and resumes any prior sessions. There is no
network selector: ASA Stats authorizes on mainnet only.
Constructors
Constructor
new App():
App
Defined in: main.ts:25
Registers initialization on DOMContentLoaded.
Returns
App
Properties
apiBase
privateapiBase:string=DEFAULT_API_BASE
Defined in: main.ts:22
Resolved walletauth API base path.
walletComponents
privatewalletComponents:WalletComponent[] =[]
Defined in: main.ts:20
Bound wallet components, retained for cleanup.
walletManager
walletManager:
WalletManager|null=null
Defined in: main.ts:18
The wallet manager, or null until App.init runs.
Methods
init()
init():
Promise<void>
Defined in: main.ts:35
Initializes wallets and binds components.
No-ops on pages without wallet cards. On failure it reveals the
#app-error element if present and logs the error.
Returns
Promise<void>