@crisp-e3/sdk 0.5.9 → 0.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -124,6 +124,15 @@ type VoteProofRequest = {
124
124
  messageHash: `0x${string}`;
125
125
  slotAddress: string;
126
126
  };
127
+ /**
128
+ * Enum representing the credit mode for a round, which can be either constant or custom.
129
+ * In constant mode, all voters receive the same amount of credits, while in custom mode,
130
+ * the credits can vary based on certain criteria (e.g., voter balance).
131
+ */
132
+ declare enum CreditMode {
133
+ CONSTANT = "0",
134
+ CUSTOM = "1"
135
+ }
127
136
 
128
137
  /**
129
138
  * Get the details of a specific round
@@ -275,4 +284,4 @@ declare class CrispSDK {
275
284
  generateVoteProof(voteProofInputs: VoteProofRequest): Promise<ProofData>;
276
285
  }
277
286
 
278
- export { CrispSDK, MERKLE_TREE_MAX_DEPTH, type MaskVoteProofInputs, type RoundDetails, type RoundDetailsResponse, SIGNATURE_MESSAGE, SIGNATURE_MESSAGE_HASH, type TokenDetails, type Vote, type VoteProofInputs, decodeTally, encodeSolidityProof, encryptVote, generateMaskVoteProof, generateMerkleProof, generateMerkleTree, generatePublicKey, generateVoteProof, getAddressFromSignature, getBalanceAt, getIsSlotEmpty, getMaxVoteValue, getPreviousCiphertext, getRoundDetails, getRoundTokenDetails, getTotalSupplyAt, getTreeData, getZeroVote, hashLeaf, validateVote, verifyProof };
287
+ export { CreditMode, CrispSDK, MERKLE_TREE_MAX_DEPTH, type MaskVoteProofInputs, type RoundDetails, type RoundDetailsResponse, SIGNATURE_MESSAGE, SIGNATURE_MESSAGE_HASH, type TokenDetails, type Vote, type VoteProofInputs, decodeTally, encodeSolidityProof, encryptVote, generateMaskVoteProof, generateMerkleProof, generateMerkleTree, generatePublicKey, generateVoteProof, getAddressFromSignature, getBalanceAt, getIsSlotEmpty, getMaxVoteValue, getPreviousCiphertext, getRoundDetails, getRoundTokenDetails, getTotalSupplyAt, getTreeData, getZeroVote, hashLeaf, validateVote, verifyProof };
package/dist/index.js CHANGED
@@ -478,7 +478,15 @@ var CrispSDK = class {
478
478
  });
479
479
  }
480
480
  };
481
+
482
+ // src/types.ts
483
+ var CreditMode = /* @__PURE__ */ ((CreditMode2) => {
484
+ CreditMode2["CONSTANT"] = "0";
485
+ CreditMode2["CUSTOM"] = "1";
486
+ return CreditMode2;
487
+ })(CreditMode || {});
481
488
  export {
489
+ CreditMode,
482
490
  CrispSDK,
483
491
  MERKLE_TREE_MAX_DEPTH,
484
492
  SIGNATURE_MESSAGE,