forked from nebgov/nebgov
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_test.ts
More file actions
17 lines (14 loc) · 774 Bytes
/
Copy pathdebug_test.ts
File metadata and controls
17 lines (14 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { GovernorClient } from "./sdk/src/governor.ts";
import { ProposalState } from "./sdk/src/types/index.ts";
const client = new GovernorClient({
governorAddress: "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
timelockAddress: "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
votesAddress: "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
network: "testnet",
});
console.log("GovernorClient initialized");
console.log("ProposalState enum:", ProposalState);
// We can't actually call getProposalState without a running RPC, but we can check if the methods exist
console.log("getProposalState exists:", typeof client.getProposalState);
// @ts-ignore
console.log("decodeProposalState exists:", typeof client.decodeProposalState);