0.1.1 • Published 7 months ago
@goat-sdk/plugin-push-governance v0.1.1
PushGovernance GOAT Plugin
The PushGovernance plugin enhances the experience for new adopters of PushChain by simplifying governance interactions. It allows users to interact with the PUSH token and manage voting power efficiently. The plugin includes the following functionalities:
- delegateVotingPower: Enables users to delegate their voting power to a specified address.
- getPushTokenAddress: Retrieves the address of the PUSH token on various chains.
- getPushBalance: Fetches the $PUSH token balance of an address.
- getVotingPower: Retrieves the current voting power of an address.
- getDelegatedTo: Shows the address to which the user's voting power is delegated.
These features streamline governance participation and enhance the overall user experience in the PushChain ecosystem.
Installation
npm install @goat-sdk/plugin-push-governance
yarn add @goat-sdk/plugin-push-governance
pnpm add @goat-sdk/plugin-push-governanceUsage
import { pushgovernance } from '@goat-sdk/plugin-push-governance';
const tools = await getOnChainTools({
wallet: // ...
plugins: [
pushgovernance()
]
});Tools
- delegateVotingPower
- getPushTokenAddress
- getPushBalance
- getVotingPower
- getDelegatedTo
0.1.1
7 months ago