From a3d384bca151b7b73ec346fff337192fb52862ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Novo?= <34069419+TeknoPT@users.noreply.github.com> Date: Thu, 11 Jan 2024 11:49:40 +0000 Subject: [PATCH] Update to the RPC --- core/rpc/phantasma.d.ts | 22 +++++----- core/rpc/phantasma.d.ts.map | 2 +- core/rpc/phantasma.js | 81 ++++++++++++++++++++++++++++--------- html/phantasma.js | 81 ++++++++++++++++++++++++++++--------- package.json | 2 +- src/core/rpc/phantasma.ts | 57 ++++++++++++++++---------- 6 files changed, 172 insertions(+), 73 deletions(-) diff --git a/core/rpc/phantasma.d.ts b/core/rpc/phantasma.d.ts index bdef856..fd96714 100644 --- a/core/rpc/phantasma.d.ts +++ b/core/rpc/phantasma.d.ts @@ -35,8 +35,8 @@ export declare class PhantasmaAPI { setNexus(nexus: string): void; updateRpc(): void; convertDecimals(amount: number, decimals: number): number; - getAccount(account: string): Promise; - getAccounts(accounts: string[]): Promise; + getAccount(account: string, extended?: boolean): Promise; + getAccounts(accounts: string[], extended?: boolean): Promise; lookUpName(name: string): Promise; getAddressesBySymbol(symbol: string, extended?: boolean): Promise; getBlockHeight(chainInput: string): Promise; @@ -54,16 +54,18 @@ export declare class PhantasmaAPI { invokeRawScript(chainInput: string, scriptData: string): Promise