Constructors
constructor
- new GovClient(program: Program<Idl>): GovClient
Properties
program
program: Program<Idl>
Methods
deriveRealmAuthority
- deriveRealmAuthority(realm: PublicKey): Promise<[PublicKey, number]>
Parameters
Returns Promise<[PublicKey, number]>
deriveVault
- deriveVault(realm: PublicKey): Promise<[PublicKey, number]>
Parameters
Returns Promise<[PublicKey, number]>
deriveVoter
- deriveVoter(realm: PublicKey, wallet: PublicKey): Promise<[PublicKey, number]>
Parameters
realm: PublicKey
wallet: PublicKey
Returns Promise<[PublicKey, number]>
Static connect
- connect(provider: default): Promise<GovClient>