-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { ProposalStatus } from '../sdk/firmachain/gov'; | ||
import { FirmaSDK } from "../sdk/FirmaSDK" | ||
import { TestChainConfig } from './config_test'; | ||
|
||
describe('[17. Gov Query Test]', () => { | ||
|
||
const firma = new FirmaSDK(TestChainConfig); | ||
|
||
it('get getProposalList', async () => { | ||
|
||
let proposalList = await firma.Gov.getProposalList(); | ||
//console.log(proposalList); | ||
}) | ||
|
||
it('get getProposalListByStatus', async () => { | ||
|
||
let status = ProposalStatus.PROPOSAL_STATUS_REJECTED; | ||
let proposalList = await firma.Gov.getProposalListByStatus(status); | ||
|
||
//console.log(proposalList); | ||
}) | ||
|
||
it('get getProposal', async () => { | ||
|
||
const id = "1"; | ||
let proposal = await firma.Gov.getProposal(id); | ||
//console.log(proposal); | ||
}) | ||
|
||
// integrated function with params/voting, params/deposit, params/tallying | ||
it('get params', async () => { | ||
|
||
let param = await firma.Gov.getParam(); | ||
//console.log(param); | ||
}) | ||
|
||
}); |