MCPcopy Create free account

hub / github.com/IBM/evote / functions

Functions30 in github.com/IBM/evote

↓ 6 callersMethodmyAssetExists
* * myAssetExists * * Checks to see if a key exists in the world state. * @param myAssetId - the key of the asset to read * @returns b
contract/lib/voterContract.js:252
↓ 3 callersMethodqueryByObjectType
* Query by the main objects in this app: ballot, election, votableItem, and Voter. * Return all key-value pairs of a given type. * * @param {C
contract/lib/voterContract.js:417
↓ 2 callersMethoddeleteMyAsset
* * deleteMyAsset * * Deletes a key-value pair from the world state, based on the key given. * * @param myAssetId - the key of the as
contract/lib/voterContract.js:206
↓ 2 callersMethodgenerateBallot
* * generateBallot * * Creates a ballot in the world state, and updates voter ballot and castBallot properties. * * @param ctx - the c
contract/lib/voterContract.js:135
↓ 2 callersMethodqueryWithQueryString
* Evaluate a queryString * * @param {Context} ctx the transaction context * @param {String} queryString the query string to be evaluate
contract/lib/voterContract.js:371
↓ 2 callersMethodreadMyAsset
* * readMyAsset * * Reads a key-value pair from the world state, based on the key given. * * @param myAssetId - the key of the asset
contract/lib/voterContract.js:226
↓ 2 callersMethodvalidateVoter
* * validateVoter * * check for valid ID card - stateID or drivers License. * * @param voterId - an array of choices * @returns -
contract/lib/Voter.js:51
↓ 1 callersMethodinit
* * init * * This function creates voters and gets the application ready for use by creating * an election from the data files in the dat
contract/lib/voterContract.js:40
↓ 1 callersFunctionmain
(userName)
web-app/server/registerUser.js:23
↓ 1 callersFunctionmain
()
web-app/server/enrollAdmin.js:28
↓ 1 callersFunctionqueryAll
()
web-app/server/invoke.js:25
↓ 1 callersMethodvalidateBallot
* * validateBallot * * check to make sure a ballot has not been created for this * voter. * * @param voterId - the unique Id for a
contract/lib/Ballot.js:51
↓ 1 callersMethodvalidateElection
* * validateElection * * check for valid election, cross check with government. Don't want duplicate * elections. * * @param elect
contract/lib/Election.js:15
↓ 1 callersMethodvalidateRegistrar
* * validateRegistrar * * check for valid registrarId, should be cross checked with government * * @param voterId - an array of choic
contract/lib/Voter.js:69
FunctioncastBallot
(electionId, voterId, picked)
web-app/client/src/services/apiService.js:4
MethodcastVote
* * castVote * * First to checks that a particular voterId has not voted before, and then * checks if it is a valid election time, and i
contract/lib/voterContract.js:273
Methodconstructor
* * Election * * Constructor for an Election object. Specifies start and end date. * * @param items - an array of choices * @para
contract/lib/Election.js:35
Methodconstructor
* * VotableItem * * Constructor for a VotableItem object. These will eventually be placed on the * ballot. * * @param votableId
contract/lib/VotableItem.js:18
Methodconstructor
* * Voter * * Constructor for a Voter object. Voter has a voterId and registrar that the * voter is . * * @param items - an array
contract/lib/Voter.js:16
Methodconstructor
* * Ballot * * Constructor for a Ballot object. This is what the point of the application is - create * ballots, have a voter fill them o
contract/lib/Ballot.js:17
Methodconstructor
()
contract/test/my-asset-contract.js:27
MethodcreateVoter
* * createVoter * * Creates a voter in the world state, based on the args given. * * @param args.voterId - the Id the voter, used as
contract/lib/voterContract.js:164
FunctiongetCurrentStanding
()
web-app/client/src/services/apiService.js:41
FunctionqueryAll
()
web-app/client/src/services/apiService.js:11
MethodqueryAll
* Query and return all key value pairs in the world state. * * @param {Context} ctx the transaction context * @returns - all key-value pairs
contract/lib/voterContract.js:354
FunctionqueryByKey
(key)
web-app/client/src/services/apiService.js:36
FunctionqueryByObjectType
()
web-app/client/src/services/apiService.js:14
FunctionqueryWithQueryString
(selected)
web-app/client/src/services/apiService.js:17
FunctionregisterVoter
(voterId, registrarId, firstName, lastName)
web-app/client/src/services/apiService.js:22
FunctionvalidateVoter
(voterId)
web-app/client/src/services/apiService.js:31