namillum
Version:
Bubble Protocol SDK
18 lines (13 loc) • 446 B
text/typescript
import { getRelayEvents } from "../helpers";
import { config } from "../config";
async function main() {
const chainGatewayAddress = config.zq.chainGateway;
const events = await getRelayEvents(chainGatewayAddress);
console.log(events.map((e) => e.args));
}
// We recommend this pattern to be able to use async/await everywhere
// and properly handle errors.
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});