-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(namada): separate proposal info/votes/result methods
- Loading branch information
Showing
6 changed files
with
69 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
import { assign } from '@hackbg/fadroma' | ||
import type NamadaConnection from './NamadaConnection' | ||
|
||
export type Params = Awaited<ReturnType<typeof fetchPGFParameters>> | ||
|
||
export async function fetchPGFParameters (connection: Pick<NamadaConnection, 'abciQuery'|'decode'>) { | ||
type Connection = Pick<NamadaConnection, 'abciQuery'|'decode'> | ||
|
||
export async function fetchPGFParameters (connection: Connection) { | ||
const binary = await connection.abciQuery(`/vp/pgf/parameters`) | ||
return connection.decode.pgf_parameters(binary) | ||
} | ||
|
||
export async function fetchPGFStewards (connection: Pick<NamadaConnection, 'abciQuery'|'decode'>) { | ||
export async function fetchPGFStewards (connection: Connection) { | ||
throw new Error("not implemented") | ||
} | ||
|
||
export async function fetchPGFFundings (connection: Pick<NamadaConnection, 'abciQuery'|'decode'>) { | ||
export async function fetchPGFFundings (connection: Connection) { | ||
throw new Error("not implemented") | ||
} | ||
|
||
export async function isPGFSteward (connection: Pick<NamadaConnection, 'abciQuery'|'decode'>) { | ||
export async function isPGFSteward (connection: Connection, address: string) { | ||
throw new Error("not implemented") | ||
} |