10 lines
395 B
TypeScript
10 lines
395 B
TypeScript
import { publicrpc } from "@certusone/wormhole-sdk-proto-web";
|
|
import { Network } from "../contexts/NetworkContext";
|
|
const { GrpcWebImpl, PublicRPCServiceClientImpl } = publicrpc;
|
|
|
|
export async function getGovernorTokenList(network: Network) {
|
|
const rpc = new GrpcWebImpl(network.endpoint, {});
|
|
const api = new PublicRPCServiceClientImpl(rpc);
|
|
return await api.GovernorGetTokenList({});
|
|
}
|