Skip to content

Commit

Permalink
Merge pull request #80 from phantasma-io/dev
Browse files Browse the repository at this point in the history
Update to the RPC
  • Loading branch information
TeknoPT authored Jan 11, 2024
2 parents feab72c + a3d384b commit b487d1b
Show file tree
Hide file tree
Showing 6 changed files with 172 additions and 73 deletions.
22 changes: 12 additions & 10 deletions core/rpc/phantasma.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export declare class PhantasmaAPI {
setNexus(nexus: string): void;
updateRpc(): void;
convertDecimals(amount: number, decimals: number): number;
getAccount(account: string): Promise<Account>;
getAccounts(accounts: string[]): Promise<Account[]>;
getAccount(account: string, extended?: boolean): Promise<Account>;
getAccounts(accounts: string[], extended?: boolean): Promise<Account[]>;
lookUpName(name: string): Promise<string>;
getAddressesBySymbol(symbol: string, extended?: boolean): Promise<Account[]>;
getBlockHeight(chainInput: string): Promise<number>;
Expand All @@ -54,16 +54,18 @@ export declare class PhantasmaAPI {
invokeRawScript(chainInput: string, scriptData: string): Promise<Script>;
getTransaction(hashText: string): Promise<TransactionData>;
cancelTransaction(hashText: string): Promise<string>;
getChains(): Promise<Chain>;
getNexus(): Promise<Nexus>;
getChains(extended?: boolean): Promise<Chain[]>;
getChain(name: string, extended?: boolean): Promise<Chain>;
getNexus(extended?: boolean): Promise<Nexus>;
getContracts(chainAddressOrName?: string, extended?: boolean): Promise<Contract[]>;
getContract(chainAddressOrName: string, contractName: string): Promise<Contract>;
getContractByAddress(chainAddressOrName: string, contractAddress: string): Promise<Contract>;
getOrganization(ID: string): Promise<Organization>;
getOrganizationByName(name: string): Promise<Organization>;
getOrganization(ID: string, extended?: boolean): Promise<Organization>;
getOrganizationByName(name: string, extended?: boolean): Promise<Organization>;
getOrganizations(extended?: boolean): Promise<Organization[]>;
getLeaderboard(name: string): Promise<Leaderboard>;
getTokens(): Promise<Token[]>;
getToken(symbol: string): Promise<Token>;
getTokens(extended?: boolean): Promise<Token[]>;
getToken(symbol: string, extended?: boolean): Promise<Token>;
getTokenData(symbol: string, IDtext: string): Promise<TokenData>;
getTokenBalance(account: string, tokenSymbol: string, chainInput: string): Promise<Balance>;
getAuctionsCount(chainAddressOrName: string, symbol: string): Promise<number>;
Expand All @@ -81,7 +83,7 @@ export declare class PhantasmaAPI {
settleSwap(sourcePlatform: string, destPlatform: string, hashText: string): Promise<string>;
getSwapsForAddressOld(account: string): Promise<Swap[]>;
getSwapsForAddress(account: string, platform: string): Promise<Swap[]>;
getNFT(symbol: string, nftId: string): Promise<NFT>;
getNFTs(symbol: string, nftIDs: string[]): Promise<NFT[]>;
getNFT(symbol: string, nftId: string, extended?: boolean): Promise<NFT>;
getNFTs(symbol: string, nftIDs: string[], extended?: boolean): Promise<NFT[]>;
}
//# sourceMappingURL=phantasma.d.ts.map
2 changes: 1 addition & 1 deletion core/rpc/phantasma.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b487d1b

Please sign in to comment.