Token Membership

Create a Token Voting Client

The TokenVoting plugin enables holders of tokens to generate and participate in voting on proposals. The token contract, which is established through the TokenVoting setup contract, adheres to OpenZeppelin's ERC20Votes standard, as detailed here: OpenZeppelin ERC20Votes Standard.

For interaction with the TokenVoting plugin, it's essential to create a TokenVotingClient. This is accomplished using the ContextPlugin, which facilitates access to various plugins within the SDK.

import { TokenVotingClient } from "@aragon/sdk-client";
import { context } from "../index";

// Instantiate the ContextPlugin from the Aragon OSx SDK context.

// Create a TokenVoting client.
const tokenVotingClient = new TokenVotingClient(context);
console.log(tokenVotingClient);

Last updated