SocialCap SmartContracts for zkApp and API services
npm install @socialcap/contractsThis template uses TypeScript.
``sh`
npm run build
`sh``
node build/src/tests/main-root-tests.js
node build/src/tests/main-claim-tests.js
Install in client
~~~
npm i @socialcap/contracts
~~~
Import it
~~~
import {
RootsContract,
VotingContract,
VotingInstance,
ClaimsVotingFactory,
ProvableCommunity,
CommunityState,
ProvablePerson,
PersonState,
ProvableMember,
MemberRole,
UID,
UTCDateTime,
MerkleMapProxy,
MerkleMapUpdate,
LeafInstance,
NullifierProxy,
} from "@socialcap/contracts";
~~~