Cli Module
Table of contents
Interfaces
- AirdropArgs
- DeployArgs
- DeployPollArgs
- DeployedContracts
- GenLocalStateArgs
- GenProofsArgs
- IGenKeypairArgs
- IRegisteredUserArgs
- MergeMessagesArgs
- MergeSignupsArgs
- PollContracts
- ProveOnChainArgs
- PublishArgs
- SignupArgs
- SubsidyData
- TallyData
- TopupArgs
- VerifyArgs
Functions
- airdrop
- checkVerifyingKeys
- deploy
- deployPoll
- deployVkRegistryContract
- fundWallet
- genKeyPair
- genLocalState
- genMaciPubKey
- genProofs
- getPoll
- isRegisteredUser
- mergeMessages
- mergeSignups
- proveOnChain
- publish
- setVerifyingKeys
- signup
- timeTravel
- topup
- verify
Functions
airdrop
▸ airdrop(AirdropArgs): Promise<void>
Utility that can be used to get topup credits airdropped to the coordinator
Parameters
| Name | Type | Description |
|---|---|---|
AirdropArgs | AirdropArgs | The arguments for the airdrop command |
Returns
Promise<void>
Defined in
checkVerifyingKeys
▸ checkVerifyingKeys(CheckVerifyingKeysArgs): Promise<boolean>
Command to confirm that the verifying keys in the contract match the local ones
Parameters
| Name | Type | Description |
|---|---|---|
CheckVerifyingKeysArgs | CheckVerifyingKeysArgs | The arguments for the checkVerifyingKeys command |
Returns
Promise<boolean>
Whether the verifying keys match or not
Note
see different options for zkey files to use specific circuits https://maci.pse.dev/docs/security/trusted-setup, https://maci.pse.dev/docs/testing/#pre-compiled-artifacts-for-testing
Defined in
commands/checkVerifyingKeys.ts:28
deploy
▸ deploy(DeployArgs): Promise<DeployedContracts>
Deploy MACI and related contracts
Parameters
| Name | Type | Description |
|---|---|---|
DeployArgs | DeployArgs | The arguments for the deploy command |
Returns
Promise<DeployedContracts>
The addresses of the deployed contracts
Defined in
deployPoll
▸ deployPoll(DeployPollArgs): Promise<PollContracts>
Deploy a new Poll for the set of MACI's contracts already deployed
Parameters
| Name | Type | Description |
|---|---|---|
DeployPollArgs | DeployPollArgs | The arguments for the deployPoll command |
Returns
Promise<PollContracts>
The addresses of the deployed contracts
Defined in
deployVkRegistryContract
▸ deployVkRegistryContract(quiet): Promise<string>
Deploy the vkRegistry contract
Parameters
| Name | Type | Description |
|---|---|---|
quiet | DeployVkRegistryArgs | whether to print the contract address |
Returns
Promise<string>
Defined in
commands/deployVkRegistry.ts:20
fundWallet
▸ fundWallet(«destructured»): Promise<void>
Fund a new wallet with Ether
Parameters
| Name | Type |
|---|---|
«destructured» | FundWalletArgs |
Returns
Promise<void>